watchyourlan/internal/models/models.go
2023-10-05 23:10:44 +07:00

54 lines
802 B
Go

package models
import (
"github.com/aceberg/WatchYourLAN/internal/auth"
)
// Conf - app config
type Conf struct {
Iface string
DbPath string
GuiIP string
GuiPort string
Timeout int
ShoutURL string
Theme string
Color string
IgnoreIP string
LogLevel string
NodePath string
Icon string
Auth bool
}
// Host - one host
type Host struct {
ID uint16
Name string
IP string
Mac string
Hw string
Date string
Known uint16
Now uint16
}
// // History for hosts
// type History struct {
// ID int
// HostID int
// Name string
// IP string
// Date string
// State bool
// }
// GuiData - all data sent to html page
type GuiData struct {
Config Conf
Hosts []Host
Themes []string
Version string
Auth auth.Conf
// HistLog []History
}