Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIResponse = "api.response" NewConfigLoadedTopic = "config.NewConfigLoaded" ConfigUpdatedFromDiscord = "config.Update.Discord" DiscordMessageSendTopic = "discord.message.send" )
Variables ¶
View Source
var ( Border = RGBA{color.RGBA{R: 0x00, G: 0x39, B: 0x77, A: 0xff}} Blue = RGBA{color.RGBA{R: 0x18, G: 0x30, B: 0x3f, A: 0xff}} Yellow = RGBA{color.RGBA{R: 0x42, G: 0x36, B: 0x04, A: 0xff}} TextGreen = RGBA{color.RGBA{R: 0x0a, G: 0x73, B: 0x00, A: 0xff}} TextYellow = RGBA{color.RGBA{R: 0xd5, G: 0xab, B: 0x00, A: 0xff}} )
Functions ¶
This section is empty.
Types ¶
type ServerListData ¶
type ServerListData struct {
RequestTime time.Time `json:"RequestTime"`
Masters []ServerListMaster `json:"Masters"`
Games []ServerListGame `json:"Games"`
Errors []string `json:"Errors"`
}
func (ServerListData) GetActiveGames ¶
func (s ServerListData) GetActiveGames() (out []ServerListGame)
func (ServerListData) GetImage ¶
func (s ServerListData) GetImage() interface{}
func (ServerListData) String ¶
func (s ServerListData) String() string
type ServerListGame ¶
type ServerListGame struct {
GameMode int `json:"GameMode"`
GameName string `json:"GameName"`
GameVersion string `json:"GameVersion"`
GameStatus ServerListGameStatus `json:"GameStatus"`
PlayerCount int `json:"PlayerCount"`
MaxPlayers int `json:"MaxPlayers"`
Name string `json:"Name"`
Address string `json:"Address"`
Ping int `json:"Ping"`
}
func (ServerListGame) String ¶
func (s ServerListGame) String() string
type ServerListGameStatus ¶
Click to show internal directories.
Click to hide internal directories.