Versions in this module Expand all Collapse all v0 v0.0.5 Sep 13, 2026 v0.0.4 Aug 1, 2026 Changes in this version + const DefaultMaxConcurrent + const DefaultTimeout + const MaxCommandLen + var ErrAuthFailed = errors.New("rcon: authentication failed, check the password") + var ErrBusy = errors.New("rcon: too many commands already in flight") + var ErrCommandTooLong = fmt.Errorf("rcon: command must be at most %d bytes", MaxCommandLen) + var ErrNotRCON = errors.New("rcon: the address is not an RCON server") + var ErrProtocol = errors.New("rcon: malformed response") + var ErrTruncated = errors.New("rcon: response truncated before the end-of-response marker") + type Client struct + func New(addr, password string, opts ...Option) *Client + func (c *Client) Addr() string + func (c *Client) Execute(ctx context.Context, command string) (string, error) + func (c *Client) Timeout() time.Duration + type Option func(*Client) + func WithMaxConcurrent(maxConcurrent int) Option + func WithTimeout(timeout time.Duration) Option + type TimeoutError struct + Addr string + Timeout time.Duration + func (e *TimeoutError) Error() string