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 + type DB interface + BeginTransaction func(ctx context.Context, opts *sql.TxOptions) (Transaction, error) + type ReserverAndTransit interface + DeleteExpiredIndices func(ctx context.Context, now time.Time) (int, error) + DeleteSegmentRsv func(ctx context.Context, ID *reservation.SegmentID) error + GetE2ERsvFromID func(ctx context.Context, ID *reservation.E2EID) (*e2e.Reservation, error) + GetE2ERsvsOnSegRsv func(ctx context.Context, ID *reservation.SegmentID) ([]*e2e.Reservation, error) + GetSegmentRsvFromID func(ctx context.Context, ID *reservation.SegmentID) (*segment.Reservation, error) + PersistE2ERsv func(ctx context.Context, rsv *e2e.Reservation) error + PersistSegmentRsv func(ctx context.Context, rsv *segment.Reservation) error + type ReserverOnly interface + GetSegmentRsvFromPath func(ctx context.Context, path segment.ReservationTransparentPath) (*segment.Reservation, error) + GetSegmentRsvsFromSrcDstIA func(ctx context.Context, srcIA, dstIA addr.IA) ([]*segment.Reservation, error) + NewSegmentRsv func(ctx context.Context, rsv *segment.Reservation) error + type Transaction interface + Commit func() error + Rollback func() error + type TransitOnly interface + GetAllSegmentRsvs func(ctx context.Context) ([]*segment.Reservation, error) + GetSegmentRsvsFromIFPair func(ctx context.Context, ingress, egress *uint16) ([]*segment.Reservation, error)