Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type GenericMessage ¶
type RconConnection ¶
type RconConnection struct { IP string Port int Password string OnConnected func() OnMessage func(*GenericMessage) OnChatMessage func(*ChatMessage) OnDisconnected func() // contains filtered or unexported fields }
func NewRconConnection ¶
func NewRconConnection(options RconConnectionOptions) *RconConnection
func (*RconConnection) Connect ¶
func (r *RconConnection) Connect() error
func (*RconConnection) Disconnect ¶
func (r *RconConnection) Disconnect() error
func (*RconConnection) SendCommand ¶
func (r *RconConnection) SendCommand(command string) error
type RconConnectionOptions ¶
type RconConnectionOptions struct { IP string Port int Password string OnConnected func() OnMessage func(*GenericMessage) OnChatMessage func(*ChatMessage) OnDisconnected func() }
Click to show internal directories.
Click to hide internal directories.