database

package
v0.0.0-...-f48b563 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *sqlx.DB

Db variable used to store global database

Functions

This section is empty.

Types

type Reservation

type Reservation struct {
	MaskSubnet string `db:"mask_subnet" json:"mask_subnet"`
	MAC        string `db:"mac" json:"mac"`
	IP         string `db:"ip" json:"ip"`
}

Reservation structure in database

func GetReservationByMAC

func GetReservationByMAC(mac string) Reservation

GetReservationByMAC get a reservation from his mac address

Jump to

Keyboard shortcuts

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