Documentation ¶
Index ¶
- func AuthToSteamID64(auth string) (string, error)
- func CheckServerConnection(IPString string, Port int, RconPassword string) bool
- func FormatMapName(mapname string) string
- func GetVersion() (string, error)
- func IsValidSteamID(auth string) bool
- func PickleToSteamID64s(Pickles []byte) ([]string, error)
- func RandString(n int) string
- func SendRCON(host string, port int, pass string, cmd string) (string, error)
- func SteamID64sToPickle(ids []string) ([]byte, error)
- type Config
- type GET5AvailableDatas
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthToSteamID64 ¶
AuthToSteamID64 Converts Auth to SteamID64
func CheckServerConnection ¶
CheckServerConnection Check server pulse by sending "status" command
func FormatMapName ¶
FormatMapName Formats correct map name.
func IsValidSteamID ¶
IsValidSteamID Checks if steamid is correct format or not
func PickleToSteamID64s ¶
PickleToSteamID64s Un-pickles Python array to SteamID64 array
func SteamID64sToPickle ¶
SteamID64sToPickle Pickles Steamid64 array
Types ¶
type Config ¶
type Config struct { SteamAPIKey string DefaultPage string SQLHost string SQLUser string SQLPass string SQLPort int SQLDBName string HOST string }
Config Configration Struct for config.ini
var (
Cnf Config
)
type GET5AvailableDatas ¶
type GET5AvailableDatas struct { Gamestate int `json:"gamestate"` Available int `json:"available"` PluginVersion string `json:"plugin_version"` }
GET5AvailableDatas Struct for Get5 availability check.
func CheckServerAvailability ¶
func CheckServerAvailability(IPString string, Port int, RconPassword string) (GET5AvailableDatas, error)
CheckServerAvailability if server is usable for get5_web
Click to show internal directories.
Click to hide internal directories.