routing

package
v0.0.0-...-5f331bc Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gateway

func Gateway(ip RouteType, device string) (string, error)

Types

type Route

type Route struct {
	Type        RouteType
	Default     bool
	Device      string
	Destination string
	Gateway     string
	Flags       string
}

func Table

func Table() []Route

func Update

func Update() ([]Route, error)

type RouteType

type RouteType string
const (
	IPv4 RouteType = "IPv4"
	IPv6 RouteType = "IPv6"
)

Jump to

Keyboard shortcuts

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