routing

package
v0.0.0-...-da1f172 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: GPL-3.0 Imports: 1 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 interface {
	// AddRoute adds a network route.
	//
	// The first returned value indicates whether the route was added.
	AddRoute(network *net.IPNet, gateway net.IP) (bool, error)

	// DeleteRoute deletes a network route.
	//
	// The first returned value indicates whether the route was added.
	DeleteRoute(network *net.IPNet, gateway net.IP) (bool, error)
}

A Router provides facilities to manipulate the operating-system's routing table.

func NewRouter

func NewRouter() Router

NewRouter instanciates a new router.

Jump to

Keyboard shortcuts

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