Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Type ActionType `json:"type"`
Actor int `json:"actor"`
Metadata RequestMeta `json:"metadata"`
Config *GameConfig `json:"config,omitempty"`
Snapshot *SnapshotConfig `json:"snapshot,omitempty"`
ConnReq *ConnReqInfo `json:"connectionRequestInfo,omitempty"`
}
type ActionType ¶
type ActionType string
const ( ActionStop ActionType = "stop" ActionSnapshot ActionType = "snapshot" ActionUndo ActionType = "undo" ActionReconfigure ActionType = "reconfigure" ActionConnReq ActionType = "connectionRequest" )
type Config ¶
type Config struct {
AuthKey string `json:"authKey"`
ControlPanel string `json:"controlPanel"`
GameConfig GameConfig `json:"gameConfig"`
}
type ConnReqInfo ¶
type Event ¶
type Event struct {
Type EventType `json:"type"`
Metadata RequestMeta `json:"metadata"`
Hello *HelloExtra `json:"hello,omitempty"`
Status *StatusExtra `json:"status,omitempty"`
Sysstat *SysstatExtra `json:"sysstat,omitempty"`
Info *InfoExtra `json:"info,omitempty"`
Started *StartedExtra `json:"started,omitempty"`
}
type GameConfig ¶
type GameConfig struct {
Server struct {
PreferDetected bool `json:"preferDetected"`
Version string `json:"name"`
DownloadUrl string `json:"downloadUrl"`
ManifestOverride string `json:"manifestOverride"`
CustomCommand []string `json:"customCommand"`
ServerPropOverride map[string]string `json:"serverPropOverride"`
JavaVersion int `json:"javaVersion"`
InactiveTimeout int `json:"inactiveTimeout"`
} `json:"server"`
World struct {
ShouldGenerate bool `json:"shouldGenerate"`
Name string `json:"name"`
GenerationId string `json:"generationId"`
Seed string `json:"seed"`
LevelType string `json:"levelType"`
Difficulty string `json:"difficulty"`
} `json:"world"`
Motd string `json:"motd"`
Operators []string `json:"operators"`
Whitelist []string `json:"whitelist"`
}
type HelloExtra ¶
type RequestMeta ¶ added in v0.3.0
type RequestMeta struct {
Traceparent string `json:"traceparent"`
}
type SnapshotConfig ¶
type SnapshotConfig struct {
Slot int `json:"slot"`
}
type StartedExtra ¶
type StatusExtra ¶
type SysstatExtra ¶
Click to show internal directories.
Click to hide internal directories.