Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerData ¶
type ServerData struct {
Protocol byte
Name string
Map string
Folder string
Game string
ID uint16
Players uint8
MaxPlayers uint8
Bots uint8
ServerType byte
Envinronment byte
Visibility byte
VAC byte
Version string
ExtraData byte
Port uint16
SteamID uint64
SpectatorPort uint16
SpectatorName string
Keywords string
GameID uint64
}
func QueryServerInfo ¶
func QueryServerInfo(server string, timeout time.Duration) (srv ServerData, err error)
does an A2S_INFO request
type ServerType ¶
type ServerType byte
const ( Dedicated ServerType = 'd' NonDedicated ServerType = 'l' SourceTVRelay ServerType = 'p' )
Click to show internal directories.
Click to hide internal directories.