Files
openlan/pkg/schema/index.go
2024-01-08 20:56:21 +08:00

25 lines
599 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"`
Outputs []Output `json:"output"`
}
type Ctrl struct {
Url string `json:"url"`
Token string `json:"token"`
}
type Message struct {
Code int `json:"code"`
Message string `json:"message"`
}