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
Click to show internal directories.
Click to hide internal directories.