rcon

package module
v0.0.0-...-ce5b041 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

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

func (*RemoteConsole) Write

func (r *RemoteConsole) Write(cmd string) (requestId int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL