segutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Pather segfetcher.Pather
}

Router returns paths backed by the local path database. XXX(matzf): this doesn't do meaningful work anymore, drop it.

func (*Router) AllRoutes

func (r *Router) AllRoutes(ctx context.Context, dst addr.IA) ([]snet.Path, error)

AllRoutes is similar to Route except that it returns multiple paths.

func (*Router) Route

func (r *Router) Route(ctx context.Context, dst addr.IA) (snet.Path, error)

Route returns a path from the local AS to dst. If dst matches the local AS, an empty path is returned.

Jump to

Keyboard shortcuts

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