Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteConnection ¶
RemoteConnection to a Source server
func New ¶
func New(opts *Options) *RemoteConnection
New creates a new RCON for the given host and port.
func (*RemoteConnection) Close ¶
func (r *RemoteConnection) Close() error
Close closes the server connection
func (*RemoteConnection) ExecCommand ¶
func (r *RemoteConnection) ExecCommand(cmd string) ([]byte, error)
ExecCommand sends a command to the server. When this command is executed it will check if the connection is authenticated or needs to be authenticated. Note that this method makes exclusive use of the underlying connection to make it safe to use in a multi routine scenario.
Click to show internal directories.
Click to hide internal directories.