first commit
This commit is contained in:
43
info/types.go
Normal file
43
info/types.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package info
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Edition string
|
||||
|
||||
const (
|
||||
EditionJava Edition = "java"
|
||||
EditionBedrock Edition = "bedrock"
|
||||
)
|
||||
|
||||
type ServerInfo struct {
|
||||
Edition Edition
|
||||
|
||||
Address string
|
||||
IP string
|
||||
Port int
|
||||
|
||||
MOTD string
|
||||
Version string
|
||||
|
||||
Online int
|
||||
Slots int
|
||||
|
||||
Software string
|
||||
Plugins []string
|
||||
Players []string
|
||||
|
||||
Game string
|
||||
Map string
|
||||
GameMode string
|
||||
|
||||
Query bool
|
||||
|
||||
Latency time.Duration
|
||||
|
||||
Raw json.RawMessage
|
||||
|
||||
RawQuery map[string]string
|
||||
}
|
||||
Reference in New Issue
Block a user