linux

package
v0.0.0-...-ec1fb27 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound Link not found
	ErrNotFound = errors.New("Link not found")
)

Functions

This section is empty.

Types

type Router

type Router struct {
	Link     netlink.Link
	Table    int
	Priority int
}

Router is a struct for managing Linux routing table

func GetRouter

func GetRouter(name string, table int, priority int) (Router, error)

GetRouter builds router struct

Jump to

Keyboard shortcuts

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