Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SquadTypeCommander = SquadType("Commander") SquadTypeRecon = SquadType("Recon") SquadTypeArmor = SquadType("Armor") SquadTypeInfantry = SquadType("Infantry") )
Functions ¶
func NewHandler ¶
func NewHandler(p RConPool) *handler
Types ¶
type PlayerCount ¶
type RConPool ¶
type RConPool interface { GetWithContext(ctx context.Context) (*rcon.Connection, error) WithConnection(ctx context.Context, f func(c *rcon.Connection) error) error Return(c *rcon.Connection, err error) }
type Score ¶
type ServerInfo ¶
type ServerInfo struct { Name string `json:"name"` Map string `json:"map"` NextMap string `json:"next_map"` PlayerCount int `json:"player_count"` Players PlayerCount `json:"players"` MaxPlayers int `json:"max_players"` RemainingTime string `json:"remaining_time"` GameScore GameScore `json:"game_score"` }
Click to show internal directories.
Click to hide internal directories.