path

package
v0.0.0-...-e6529c4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(spath snet.Path) string

Fingerprint creates a unique string representation of a segment based on its hop sequence. It is faster than snet.Fingerprint and truly unique.

Types

type InterfacePath

type InterfacePath struct {
	// Interfaces is the sequence of ingress-egress interfaces on the path.
	Interfaces []snet.PathInterface
}

InterfacePath is a partial implementation of the snet.Path interface as a work-around for situations where snet.Path is officially required by external code but only the path interfaces are actually needed and accessed behind the scenes.

func (InterfacePath) Copy

func (_ InterfacePath) Copy() snet.Path

func (InterfacePath) Destination

func (_ InterfacePath) Destination() addr.IA

func (InterfacePath) Metadata

func (ip InterfacePath) Metadata() *snet.PathMetadata

func (InterfacePath) Path

func (_ InterfacePath) Path() spath.Path

func (InterfacePath) UnderlayNextHop

func (_ InterfacePath) UnderlayNextHop() *net.UDPAddr

Jump to

Keyboard shortcuts

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