mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 08:36:59 +08:00
25 lines
599 B
Go
Executable File
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"`
|
|
}
|