path

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: 6 Imported by: 0

Documentation

Overview

Package path implements snet.Path with full metadata This is used by libraries that provide paths for applications to use, such as the path combinator and the sciond API. Applications using snet will not usually make use of this package directly.

TODO(matzf): perhaps moving empty path and partial path here too could be a nice cleanup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	Dst     addr.IA
	SPath   spath.Path
	NextHop *net.UDPAddr
	Meta    snet.PathMetadata
}

Path is an snet.Path with full metadata

func (Path) Copy

func (p Path) Copy() snet.Path

func (Path) Destination

func (p Path) Destination() addr.IA

func (Path) Metadata

func (p Path) Metadata() *snet.PathMetadata

func (Path) Path

func (p Path) Path() spath.Path

func (Path) String

func (p Path) String() string

func (Path) UnderlayNextHop

func (p Path) UnderlayNextHop() *net.UDPAddr

Jump to

Keyboard shortcuts

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