package
1.4.0
Repository: https://github.com/gorcon/rcon.git
Documentation: pkg.go.dev

# Functions

AuthHandler checks authorisation data and responses with SERVERDATA_AUTH_RESPONSE packet.
EmptyHandler responses with empty body.
NewServer returns a running RCON Server or nil if an error occurred.
NewUnstartedServer returns a new Server but doesn't start it.
SetAuthHandler injects HandlerFunc with authorisation data checking.
SetCommandHandler injects HandlerFunc with commands processing.
SetSettings injects configuration for RCON Server.

# Structs

Context represents the context of the current RCON request.
Server is an RCON server listening on a system-chosen port on the local loopback interface, for use in end-to-end RCON tests.
Settings contains configuration for RCON Server.

# Type aliases

HandlerFunc defines a function to serve RCON requests.
Option allows to inject Settings to Server.