Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrDisconnect . ErrDisconnect = errors.New("Connection lost") //ErrConnectionNil . ErrConnectionNil = errors.New("Connection is nil") //ErrTimeout . ErrTimeout = errors.New("Connection timeout") //ErrInvalidLogin . ErrInvalidLogin = errors.New("Login Invalid") //ErrLoginFailed . ErrLoginFailed = errors.New("Login failed") //ErrUnknownPacketType . ErrUnknownPacketType = errors.New("Received Unknown Packet Type") //ErrInvalidLoginPacket . ErrInvalidLoginPacket = errors.New("Received invalid Login Packet") //ErrInvalidChecksum . ErrInvalidChecksum = errors.New("Received invalid Packet Checksum") //ErrInvalidSizeNoHeader . ErrInvalidSizeNoHeader = errors.New("Invalid Packet Size, no Header found") //ErrInvalidSizeNoSequence . ErrInvalidSizeNoSequence = errors.New("Invalid Packet Size, no Sequence found") //ErrInvalidHeaderSize . ErrInvalidHeaderSize = errors.New("Invalid Packet Header Size") //ErrInvalidHeaderSyntax . ErrInvalidHeaderSyntax = errors.New("Invalid Packet Header Syntax") //ErrInvalidHeaderEnd . ErrInvalidHeaderEnd = errors.New("Invalid Packet Header end") //ErrInvalidSize . ErrInvalidSize = errors.New("Packet size too") )
Functions ¶
This section is empty.
Types ¶
type BeCfg ¶
type BeCfg interface {
GetConfig() Config
}
BeCfg is the Interface providing Configs for the Client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the the Object Handling the Connection
func (*Client) RunCommand ¶
func (c *Client) RunCommand(cmd string, w io.WriteCloser)
RunCommand adds given cmd to command queue
func (*Client) SetChatWriter ¶
SetChatWriter enables Chat Reading and sets Writer
func (*Client) SetEventWriter ¶
SetEventWriter enables Event Reading and sets Writer
func (*Client) WatcherLoop ¶
func (c *Client) WatcherLoop()
WatcherLoop is responsible for creating and keeping working connections
Click to show internal directories.
Click to hide internal directories.