path_mgmt

package
v0.0.0-...-c8fc2fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
}

type IFStateInfo

type IFStateInfo struct {
	IfID    uint64
	Active  bool
	RevInfo *RevInfo
}

func (*IFStateInfo) String

func (i *IFStateInfo) String() string

type IFStateInfos

type IFStateInfos struct {
	Infos []*IFStateInfo
}

func (*IFStateInfos) ProtoId

func (i *IFStateInfos) ProtoId() proto.ProtoIdType

func (*IFStateInfos) String

func (i *IFStateInfos) String() string

type IFStateReq

type IFStateReq struct {
	IfID uint64
}

func (*IFStateReq) ProtoId

func (i *IFStateReq) ProtoId() proto.ProtoIdType

func (*IFStateReq) String

func (i *IFStateReq) String() string

type Pld

type Pld struct {
	*Data
	// contains filtered or unexported fields
}

func NewPld

func NewPld(u proto.Cerealizable, d *Data) (*Pld, error)

NewPld creates a new path mgmt payload, containing the supplied Cerealizable instance.

func (*Pld) ProtoId

func (p *Pld) ProtoId() proto.ProtoIdType

func (*Pld) String

func (p *Pld) String() string

func (*Pld) Union

func (p *Pld) Union() (proto.Cerealizable, error)

type RevInfo

type RevInfo struct {
	IfID     uint64
	Epoch    uint64
	Nonce    common.RawBytes
	Siblings []SiblingHash
	PrevRoot common.RawBytes
	NextRoot common.RawBytes
	RawIsdas addr.IAInt `capnp:"isdas"`
	HashType uint16
	TreeTTL  uint32
}

func NewRevInfoFromRaw

func NewRevInfoFromRaw(b common.RawBytes) (*RevInfo, error)

func (*RevInfo) IA

func (r *RevInfo) IA() *addr.ISD_AS

func (*RevInfo) ProtoId

func (r *RevInfo) ProtoId() proto.ProtoIdType

func (*RevInfo) String

func (r *RevInfo) String() string

type SegRecs

type SegRecs struct {
	Recs     []*seg.Meta
	RevInfos []*RevInfo
}

func (*SegRecs) ProtoId

func (s *SegRecs) ProtoId() proto.ProtoIdType

func (*SegRecs) String

func (s *SegRecs) String() string

type SegReg

type SegReg struct {
	*SegRecs
}

type SegReply

type SegReply struct {
	Req  *SegReq
	Recs *SegRecs
}

func NewSegReplyFromRaw

func NewSegReplyFromRaw(b common.RawBytes) (*SegReply, error)

func (*SegReply) ProtoId

func (s *SegReply) ProtoId() proto.ProtoIdType

func (*SegReply) String

func (s *SegReply) String() string

func (*SegReply) Write

func (s *SegReply) Write(b common.RawBytes) (int, error)

type SegReq

type SegReq struct {
	Id       SegReqId
	RawSrcIA addr.IAInt `capnp:"srcIA"`
	RawDstIA addr.IAInt `capnp:"dstIA"`
	Flags    struct {
		Sibra     bool
		CacheOnly bool
	}
}

func NewSegReqFromRaw

func NewSegReqFromRaw(b common.RawBytes) (*SegReq, error)

func (*SegReq) DstIA

func (s *SegReq) DstIA() *addr.ISD_AS

func (*SegReq) ProtoId

func (s *SegReq) ProtoId() proto.ProtoIdType

func (*SegReq) SrcIA

func (s *SegReq) SrcIA() *addr.ISD_AS

func (*SegReq) String

func (s *SegReq) String() string

func (*SegReq) Write

func (s *SegReq) Write(b common.RawBytes) (int, error)

type SegReqId

type SegReqId uint64

func (SegReqId) String

func (id SegReqId) String() string

type SegSync

type SegSync struct {
	*SegRecs
}

type SiblingHash

type SiblingHash struct {
	IsLeft bool
	Hash   common.RawBytes
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL