Versions in this module Expand all Collapse all v1 v1.0.0 Apr 13, 2020 Changes in this version + const CommandPacketType + const FragmentationPacketType + const LoginFailed + const LoginPacketType + const LoginSuccessful + const ServerMessagePacketType + const UnknownPacketType + func MakeCommandResponsePacket(seq uint8, data []byte) []byte + func MakeLoginResponsePacket(responseType LoginResponseType) []byte + func MakeServerMessagePacket(seq uint8, data []byte) []byte + func NewChecksum(data []byte) uint32 + func ParseCommand(input io.Reader) (string, error) + func ParseSequenceNumber(input io.Reader) (byte, error) + func VerifyChecksum(data []byte, checksum uint32) bool + type Logger interface + Printf func(format string, v ...interface{}) + type LoginResponseType byte + type PacketHeader struct + Checksum uint32 + End byte + Magic []byte + func NewPacketHeader(checksum uint32) PacketHeader + func ParseHeader(input io.Reader) (PacketHeader, error) + func (ph *PacketHeader) Encode() []byte + type PacketType byte + func ParsePacketType(input io.Reader) (PacketType, error) + func (p PacketType) Stringer() string + type RCON struct + Logger Logger + func NewRCON(host string, port int, password string) *RCON + func (r *RCON) Broadcast(data []byte) + func (r *RCON) Clients() []net.Addr + func (r *RCON) ListenAndServe() error + func (r *RCON) NextSequenceNumber() uint8 + func (r *RCON) OnCommand(handle func(seq uint8, command string, from net.Addr)) + func (r *RCON) SendResponse(to net.Addr, data []byte) error + func (r *RCON) SetIPBanList(ipBanList []string)