query

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NullHpCfgID = HPCfgID{IA: addr.IAInt(0).IA(), ID: 0}

Functions

This section is empty.

Types

type ByLastUpdate added in v0.4.0

type ByLastUpdate Results

ByLastUpdate implements the sort.Interface to sort results by LastUpdate time stamp.

func (ByLastUpdate) Len added in v0.4.0

func (r ByLastUpdate) Len() int

func (ByLastUpdate) Less added in v0.4.0

func (r ByLastUpdate) Less(i, j int) bool

func (ByLastUpdate) Swap added in v0.4.0

func (r ByLastUpdate) Swap(i, j int)

type HPCfgID

type HPCfgID struct {
	IA addr.IA
	ID uint64
}

TODO(shitz): This should be moved when we have hidden path sets.

func (*HPCfgID) Equal added in v0.4.0

func (h *HPCfgID) Equal(other *HPCfgID) bool

type IntfSpec

type IntfSpec struct {
	IA   addr.IA
	IfID common.IFIDType
}

type Params

type Params struct {
	SegIDs        []common.RawBytes
	SegTypes      []seg.Type
	HpCfgIDs      []*HPCfgID
	Intfs         []*IntfSpec
	StartsAt      []addr.IA
	EndsAt        []addr.IA
	MinLastUpdate *time.Time
}

type Result

type Result struct {
	Seg        *seg.PathSegment
	LastUpdate time.Time
	HpCfgIDs   []*HPCfgID
	Type       seg.Type
}

type ResultOrErr added in v0.4.0

type ResultOrErr struct {
	Result *Result
	Err    error
}

ResultOrErr is either a result or an error.

type Results added in v0.3.0

type Results []*Result

Results is a type for convenience methods on a slice of Results.

func (Results) SegMetas added in v0.6.0

func (r Results) SegMetas() []*seg.Meta

SegMetas returns the segments in a seg.Meta slice, i.e. returns the segments with their PathSegTypes.

func (Results) Segs added in v0.3.0

func (r Results) Segs() seg.Segments

Segs returns the segments in the Results slice.

Jump to

Keyboard shortcuts

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