route

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotIPV4 = errors.New("TargetIP addresses are not IPV4 rules")

Functions

This section is empty.

Types

type Route

type Route struct {
	Host    string
	Gateway string
}

func NewRoute

func NewRoute(host, gateway string) *Route

func (*Route) DelRoute

func (r *Route) DelRoute() error

func (*Route) SetRoute

func (r *Route) SetRoute() error

Jump to

Keyboard shortcuts

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