Documentation
¶
Index ¶
- func AddRoute(_ string, to *net.IPNet, via net.IP) error
- func AddrSubscribe(ctx context.Context, ch chan<- AddrUpdate) error
- func DelRoute(_ string, to *net.IPNet, via net.IP) error
- func RouteSubscribe(ctx context.Context, ch chan<- RouteUpdate) error
- func SetupLink(ifName, cidr string) error
- type AddrUpdate
- type Info
- type Link
- type RouteUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrSubscribe ¶
func AddrSubscribe(ctx context.Context, ch chan<- AddrUpdate) error
func RouteSubscribe ¶
func RouteSubscribe(ctx context.Context, ch chan<- RouteUpdate) error
RouteSubscribe takes a chan down which notifications will be sent when routes are added or deleted. Rules are not currently supported
Types ¶
type Link ¶
func LinkByIndex ¶
Click to show internal directories.
Click to hide internal directories.