query

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 IntfSpec

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

type Params

type Params struct {
	SegIDs     [][]byte
	SegTypes   []seg.Type
	HPGroupIDs []uint64
	Intfs      []*IntfSpec
	StartsAt   []addr.IA
	EndsAt     []addr.IA
}

type Result

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

type Results added in v0.3.0

type Results []*Result

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

func (Results) Len added in v0.7.0

func (r Results) Len() int

Len returns the number of results.

func (Results) Less added in v0.7.0

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

Less returns if seg[i] is less than seg[j] based on start_isd_as > end_isd_as > length > id

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.

func (Results) Swap added in v0.7.0

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

Swap swaps the two elements of Results

Jump to

Keyboard shortcuts

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