Versions in this module Expand all Collapse all v1 v1.0.5 Sep 14, 2022 v1.0.4 Sep 14, 2022 v1.0.1 Feb 21, 2022 Changes in this version + const DefaultPort + const MaxPacketSize + const ServerDataAuth + const ServerDataAuthResponse + const ServerDataExecCommand + const ServerDataResponseValue + func EncodePacket(p Packet) ([]byte, error) + type Client interface + Close func() error + Write func(content string) error + func NewClient(conn io.WriteCloser, lastPacket Packet) Client + type Packet struct + Body string + ID int32 + Size int32 + Type PacketType + func ParsePacket(input io.Reader) (Packet, error) + type PacketType int32 + func (p PacketType) Stringer() string + type RCON struct + func NewRCON(host string, port int, password string) *RCON + func (r *RCON) ListenAndServe() error + func (r *RCON) OnCommand(handle func(command string, client Client)) + func (r *RCON) SetBanList(banList []string) + func (server *RCON) CloseOnProgramEnd()