Files
openlan/pkg/schema/index.go
2022-07-29 23:38:54 +08:00

24 lines
560 B
Go
Executable File

package schema
type Index struct {
Version Version `json:"version"`
Worker Worker `json:"worker"`
Points []Point `json:"points"`
Links []Link `json:"links"`
Neighbors []Neighbor `json:"neighbors"`
OnLines []OnLine `json:"online"`
Network []Network `json:"network"`
Clients []VPNClient `json:"clients"`
States []EspState `json:"states"`
}
type Ctrl struct {
Url string `json:"url"`
Token string `json:"token"`
}
type Message struct {
Code int `json:"code"`
Message string `json:"message"`
}