Files
openlan/pkg/schema/index.go
2025-04-21 10:45:08 +08:00

24 lines
560 B
Go
Executable File

package schema
type Index struct {
Version Version `json:"version"`
Worker Worker `json:"worker"`
Access []Access `json:"access"`
Links []Link `json:"links"`
Neighbors []Neighbor `json:"neighbors"`
OnLines []OnLine `json:"online"`
Network []Network `json:"network"`
Clients []VPNClient `json:"clients"`
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"`
}