Documentation
¶
Index ¶
Constants ¶
View Source
const ( Auth int32 = 3 AuthResponse int32 = 2 ExecCommand int32 = 2 ResponseValue int32 = 0 )
Variables ¶
View Source
var ( ErrMergeNoPackets = errors.New("rcon: no packets to merge") ErrMergeInvalidID = errors.New("rcon: mismatched packet ID in merge") ErrMergeInvalidType = errors.New("rcon: mismatched packet type in merge") )
View Source
var ( ErrInvalidWrite = errors.New("rcon: failed to write to remote connection") ErrInvalidRead = errors.New("rcon: failed to read from remote connection") ErrInvalidID = errors.New("rcon: invalid response ID from remote connection") ErrInvalidAuthResponse = errors.New("rcon: invalid response type during auth") ErrInvalidPacketOrder = errors.New("rcon: packets from server received out of order") ErrAuthFailed = errors.New("rcon: authentication failed") )
Functions ¶
This section is empty.
Types ¶
type Packet ¶
func MergePackets ¶
type RCON ¶
type RCON struct {
// TODO: add some more useful stuff here?
Address string
// contains filtered or unexported fields
}
func (*RCON) Authenticate ¶
func (*RCON) ReadPacket ¶
func (*RCON) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.