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.
Click to show internal directories.
Click to hide internal directories.