Documentation ¶
Index ¶
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") )
Functions ¶
This section is empty.
Types ¶
type RemoteConsole ¶
type RemoteConsole struct {
// contains filtered or unexported fields
}
func Dial ¶
func Dial(host, password string) (*RemoteConsole, error)
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.