dhcp

package
v0.0.0-...-395c4cb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	DB  *sqlx.DB
	Cfg Cfg
}

func NewApp

func NewApp(c Cfg) (a App, err error)

func (*App) GetDHCP

func (a *App) GetDHCP() (dta []byte, err error)

type Cfg

type Cfg struct {
	DBURL   string `toml:"mysql"`
	NetName string `toml:"netname"`
}

type DHCP

type DHCP struct {
	NetName string
	Nets    []Net
	Hosts   []Host
}

type Host

type Host struct {
	Name string
	IP   string
	Mac  string
}

type Net

type Net struct {
	Net     string
	Mask    string
	DNSes   []string
	GateWay string
}

Jump to

Keyboard shortcuts

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