Documentation ¶
Index ¶
- Variables
- func ReadConfig(cfgFile string) error
- type RemoteConsole
- func (r *RemoteConsole) Close() error
- func (r *RemoteConsole) Exec(c string) (string, error)
- func (r *RemoteConsole) LocalAddr() net.Addr
- func (r *RemoteConsole) Read() (response string, requestID int, err error)
- func (r *RemoteConsole) RemoteAddr() net.Addr
- func (r *RemoteConsole) Write(cmd string) (requestID int, err error)
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthFailed = errors.New("rcon: authentication failed") ErrInvalidAuthResponse = errors.New("rcon: invalid response type during auth") ErrUnexpectedFormat = errors.New("rcon: unexpected response format") ErrCommandTooLong = errors.New("rcon: command too long") ErrResponseTooLong = errors.New("rcon: response too long") )
View Source
var BuildVersion = "master"
View Source
var Config *rootConfig
Functions ¶
func ReadConfig ¶ added in v1.0.4
ReadConfig reads in config file and ENV variables if set.
Types ¶
type RemoteConsole ¶
type RemoteConsole struct {
// contains filtered or unexported fields
}
func (*RemoteConsole) Close ¶
func (r *RemoteConsole) Close() error
func (*RemoteConsole) LocalAddr ¶
func (r *RemoteConsole) LocalAddr() net.Addr
func (*RemoteConsole) Read ¶
func (r *RemoteConsole) Read() (response string, requestID int, err error)
func (*RemoteConsole) RemoteAddr ¶
func (r *RemoteConsole) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.