routing

package
v2.7.0-test.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	LocalIP   net.IP
	RoutedNet *net.IPNet
	Interface *net.Interface
	Gateway   net.IP
	Default   bool
}

func DefaultRoute added in v2.5.4

func DefaultRoute(ctx context.Context) (Route, error)

func GetRoute

func GetRoute(ctx context.Context, routedNet *net.IPNet) (Route, error)

func GetRoutingTable added in v2.4.8

func GetRoutingTable(ctx context.Context) ([]Route, error)

func (*Route) Routes

func (r *Route) Routes(ip net.IP) bool

func (Route) String

func (r Route) String() string

Jump to

Keyboard shortcuts

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