net

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAddress

func DeleteAddress(name string) error

func UpdateAddress

func UpdateAddress(a *Address) error

Types

type Address

type Address struct {
	Id      int    `json:"id"`
	Name    string `json:"name"`
	Ip      string `json:"ip"`
	Mask    string `json:"mask"`
	Gateway string `json:"gateway"`
}

func GetAddress

func GetAddress(name string) (*Address, error)

func GetAddressList

func GetAddressList() ([]*Address, error)

Jump to

Keyboard shortcuts

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