query

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package query implements functionality for making RCON and A2S queries

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A2SQueryServer added in v0.1.8

func A2SQueryServer(server model.Server) (*a2s.ServerInfo, error)

func ExecRCON

func ExecRCON(server model.Server, cmd string) (string, error)

ExecRCON executes the given command against the server provided. It returns the command output.

func GetServerStatus

func GetServerStatus(server model.Server) (extra.Status, error)

GetServerStatus fetches and parses status output for the server

func RCON

func RCON(ctx context.Context, servers []model.Server, commands ...string) map[string]string

RCON is used to execute rcon commands against multiple servers

Types

This section is empty.

Jump to

Keyboard shortcuts

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