util

package
v0.0.1-b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckServerAvailability

func CheckServerAvailability(srv db.GameServerData) (bool, string)

CheckServerAvailability if server is usable for get5_web

func CheckServerConnection

func CheckServerConnection(srv db.GameServerData) bool

CheckServerConnection Check server pulse by sending "status" command

func FormatMapName

func FormatMapName(mapname string) string

FormatMapName Formats correct map name.

func GetVersion

func GetVersion() (string, error)

func SendRCON

func SendRCON(host string, pass string, cmd string) (string, error)

SendRCON Sends Remote-Commands to specific IP SRCDS.

Types

type GET5AvailableDatas

type GET5AvailableDatas struct {
	Gamestate     int    `json:"gamestate"`
	Available     int    `json:"available"`
	PluginVersion string `json:"plugin_version"`
}

GET5AvailableDatas Struct for Get5 availability check.

Jump to

Keyboard shortcuts

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