tsviewer/features/api/server/server.go

23 lines
757 B
Go
Raw Permalink Normal View History

2019-01-16 21:01:48 +00:00
package server
import "time"
type Service interface {
2019-01-21 17:53:33 +00:00
ServerInfo() (*Server, error)
2019-01-16 21:01:48 +00:00
}
type Server struct {
Name string `json:"name"`
Status string `json:"status"`
Version string `json:"version"`
WelcomeMessage string `json:"welcomeMessage"`
MaxClients int `json:"maxClients"`
ClientsOnline int `json:"clientsOnline"`
ReservedSlots int `json:"reservedSlots"`
Uptime time.Duration `json:"uptime"`
TotalPing float32 `json:"totalPing"`
MinAndroidVersion int `json:"minAndroidVersion"`
MinClientVersion int `json:"minClientVersion"`
MiniOSVersion int `json:"miniOSVersion"`
}