watchyourlan/internal/models/models.go
2023-01-02 13:05:44 +07:00

33 lines
469 B
Go

package models
// Host - one host
type Host struct {
ID uint16
Name string
IP string
Mac string
Hw string
Date string
Known uint16
Now uint16
}
// Conf - app config
type Conf struct {
Iface string
DbPath string
GuiIP string
GuiPort string
Timeout int
ShoutURL string
Theme string
IgnoreIP string
}
// GuiData - all data sent to html page
type GuiData struct {
Config Conf
Hosts []Host
Icon string
Themes []string
}