rcon

package module
v0.0.0-...-34a67ca Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 8 Imported by: 22 modules, 22 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址