Versions in this module Expand all Collapse all v0 v0.7.0 Mar 12, 2022 v0.6.0 Dec 4, 2020 Changes in this version + const PathStepWithIALen + type CleanupReq struct + type Index struct + AllocBW reservation.BWCls + Expiration time.Time + Idx reservation.IndexNumber + MaxBW reservation.BWCls + MinBW reservation.BWCls + Token *reservation.Token + func NewIndex(idx reservation.IndexNumber, expiration time.Time, state IndexState, ...) *Index + func (index *Index) State() IndexState + type IndexConfirmationReq struct + State IndexState + type IndexState uint8 + const IndexActive + const IndexPending + const IndexTemporary + type Indices []Index + func (idxs Indices) GetAllocBW(i int) reservation.BWCls + func (idxs Indices) GetExpiration(i int) time.Time + func (idxs Indices) GetIndexNumber(i int) reservation.IndexNumber + func (idxs Indices) GetToken(i int) *reservation.Token + func (idxs Indices) Len() int + func (idxs Indices) Rotate(i int) base.IndicesInterface + type PathStep struct + Egress uint16 + Ingress uint16 + type PathStepWithIA struct + IA addr.IA + func (s *PathStepWithIA) String() string + type Request struct + Egress uint16 + ID reservation.SegmentID + Index reservation.IndexNumber + Ingress uint16 + Reservation *Reservation + Timestamp time.Time + func NewRequest(ts time.Time, id *reservation.SegmentID, idx reservation.IndexNumber, ...) (*Request, error) + type Reservation struct + Egress uint16 + ID reservation.SegmentID + Indices Indices + Ingress uint16 + Path ReservationTransparentPath + PathEndProps reservation.PathEndProps + PathType reservation.PathType + TrafficSplit reservation.SplitCls + func NewReservation() *Reservation + func (r *Reservation) ActiveIndex() *Index + func (r *Reservation) Index(idx reservation.IndexNumber) *Index + func (r *Reservation) MaxBlockedBW() uint64 + func (r *Reservation) MaxRequestedBW() uint64 + func (r *Reservation) NewIndexAtSource(expTime time.Time, minBW, maxBW, allocBW reservation.BWCls, ...) (reservation.IndexNumber, error) + func (r *Reservation) NewIndexFromToken(tok *reservation.Token, minBW, maxBW reservation.BWCls) (reservation.IndexNumber, error) + func (r *Reservation) RemoveIndex(idx reservation.IndexNumber) error + func (r *Reservation) SetIndexActive(idx reservation.IndexNumber) error + func (r *Reservation) SetIndexConfirmed(idx reservation.IndexNumber) error + func (r *Reservation) Validate() error + type ReservationTransparentPath []PathStepWithIA + func NewPathFromRaw(buff []byte) (ReservationTransparentPath, error) + func (p ReservationTransparentPath) Equal(o ReservationTransparentPath) bool + func (p ReservationTransparentPath) GetDstIA() addr.IA + func (p ReservationTransparentPath) GetSrcIA() addr.IA + func (p ReservationTransparentPath) Len() int + func (p ReservationTransparentPath) Read(buff []byte) (int, error) + func (p ReservationTransparentPath) String() string + func (p ReservationTransparentPath) ToRaw() []byte + func (p ReservationTransparentPath) Validate() error + type Response struct + Accepted bool + FailedHop uint8 + ID reservation.SegmentID + Index reservation.IndexNumber + func NewResponse(ts time.Time, id *reservation.SegmentID, idx reservation.IndexNumber, ...) (*Response, error) + type ResponseCleanupFailure struct + ErrorCode uint8 + type ResponseCleanupSuccess struct + type ResponseIndexConfirmationFailure struct + ErrorCode uint8 + type ResponseIndexConfirmationSuccess struct + State IndexState + type ResponseSetupFailure struct + FailedSetup *SetupReq + type ResponseSetupSuccess struct + Token reservation.Token + type ResponseTeardownFailure struct + ErrorCode uint8 + type ResponseTeardownSuccess struct + type SetupReq struct + AllocTrail reservation.AllocationBeads + InfoField reservation.InfoField + MaxBW reservation.BWCls + MinBW reservation.BWCls + PathProps reservation.PathEndProps + SplitCls reservation.SplitCls + type SetupTelesReq struct + BaseID reservation.SegmentID + type TeardownReq struct