types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Delay       float32 // ms
	Bandwidth   float32 // byte/s
	Metadata    *pb.ServiceMetadata
	Address     string
	MetadataRaw string
}

type Nodes

type Nodes []*Node

func (Nodes) Len

func (fs Nodes) Len() int

func (Nodes) Swap

func (fs Nodes) Swap(i, j int)

type SortByBandwidth

type SortByBandwidth struct{ Nodes }

func (SortByBandwidth) Less

func (s SortByBandwidth) Less(i, j int) bool

type SortByDelay

type SortByDelay struct{ Nodes }

func (SortByDelay) Less

func (s SortByDelay) Less(i, j int) bool

Jump to

Keyboard shortcuts

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