pathsource

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoResolver common.ErrMsg = "no resolver set"
	ErrNoPath     common.ErrMsg = "path not found"
	ErrInitPath   common.ErrMsg = "raw forwarding path offsets could not be initialized"
	ErrBadOverlay common.ErrMsg = "unable to extract next hop from sciond path entry"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PathSource

type PathSource interface {
	Get(ctx context.Context, src, dst addr.IA) (*overlay.OverlayAddr, *spath.Path, error)
}

PathSource is a source of paths and overlay addresses for snet.

func NewPathSource

func NewPathSource(resolver pathmgr.Resolver) PathSource

NewPathSource initializes a source of paths and overlay addresses for snet, with information obtained from resolver. Passing in a nil resolver is allowed, but the source will always return an error when invoked.

Directories

Path Synopsis
Package mock_pathsource is a generated GoMock package.
Package mock_pathsource is a generated GoMock package.

Jump to

Keyboard shortcuts

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