rpc

package
v0.0.0-...-dfb9820 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 5 Imported by: 0

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}}
	NavBlue    = RGBA{color.RGBA{R: 0x18, G: 0x30, B: 0x3f, A: 0x80}}
	NavYellow  = RGBA{color.RGBA{R: 0x42, G: 0x36, B: 0x04, A: 0x80}}
)

Functions

This section is empty.

Types

type RGBA

type RGBA struct {
	color.RGBA
}

func (*RGBA) RGBAFloat

func (c *RGBA) RGBAFloat() (float64, float64, float64, float64)

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

type ServerListGameStatus struct {
	Protected       bool `json:"Protected"`
	Dedicated       bool `json:"Dedicated"`
	AllowOldClients bool `json:"AllowOldClients"`
	Started         bool `json:"Started"`
	Dynamix         bool `json:"Dynamix"`
	Won             bool `json:"WON"`
	Unknown2        bool `json:"Unknown2"`
	Unknown3        bool `json:"Unknown3"`
}

type ServerListMaster

type ServerListMaster struct {
	Address     string `json:"Address"`
	CommonName  string `json:"CommonName"`
	Motd        string `json:"MOTD"`
	ServerCount int    `json:"ServerCount"`
	Ping        int    `json:"Ping"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL