Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientBuilder ¶
type ClientBuilder func(*config.Config) (mcclient.MinecraftClient, error)
ClientBuilder creates new minecraft clients from a config
type PlayerInfo ¶
type PlayerInfo struct { Name string `json:"name" firestore:"name"` UUID string `json:"uuid" firestore:"uuid"` }
PlayerInfo represents a minecraft player
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetServerInfo ¶
func (srv *Server) GetServerInfo() interface{}
type ServerInfo ¶
type ServerInfo struct { MotD string `json:"motd" firestore:"motd"` Online bool `json:"online" firestore:"online"` Version string `json:"version" firestore:"version"` Icon string `json:"icon" firestore:"icon"` MaxPlayers int `json:"max_players" firestore:"max_players"` OnlinePlayers int `json:"online_players" firestore:"online_players"` Players []PlayerInfo `json:"players" firestore:"players"` }
ServerInfo provides information about a minecraft server
Click to show internal directories.
Click to hide internal directories.