Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthError ¶
type AuthError struct {
StatusCode int
}
AuthError is returned when the client fails to authenticate with the server.
type ClosedError ¶
type ClosedError struct {
Err error // Can be nil
}
ClosedError is returned when the client attempts to use a closed connection.
func (ClosedError) Error ¶
func (c ClosedError) Error() string
func (ClosedError) Unwrap ¶
func (c ClosedError) Unwrap() error
type ConfigError ¶
ConfigError is returned when a configuration field is invalid.
func (ConfigError) Error ¶
func (c ConfigError) Error() string
type ConnectError ¶
type ConnectError struct {
Err error
}
ConnectError is returned when the client fails to connect to the server.
func (ConnectError) Error ¶
func (c ConnectError) Error() string
func (ConnectError) Unwrap ¶
func (c ConnectError) Unwrap() error
type DialError ¶
type DialError struct {
Message string
}
DialError is returned when the server rejects the client's dial request. This applies to both TCP and UDP.
type ProtocolError ¶
type ProtocolError struct {
Message string
}
ProtocolError is returned when the server/client runs into an unexpected or malformed request/response/message.
func (ProtocolError) Error ¶
func (p ProtocolError) Error() string
Click to show internal directories.
Click to hide internal directories.