Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Armour() conn.Armour
- func (c *Client) BindArmour(a conn.Armour)
- func (c *Client) Close()
- func (c *Client) Connect() error
- func (c *Client) Done() <-chan struct{}
- func (c *Client) ID() uint64
- func (c *Client) LoadSignInRsp(rsp *protocol.SignInRsp)
- func (c *Client) OnNetClosed()
- func (c *Client) RecvChan() <-chan *protocol.Packet
- func (c *Client) Send(msg protocol.Message) error
- func (c *Client) Sender() *conn.Sender
- func (c *Client) Status() *ClientStatus
- type ClientConfig
- type ClientStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var D_CachePingRecordLen = 8
View Source
var DefaultDialConn conn.FDialConn
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *ClientConfig FDialConn conn.FDialConn FRecvChan conn.FRecvChan Conn conn.Connection CBOnNetClosed func(*Client) // contains filtered or unexported fields }
func (*Client) BindArmour ¶ added in v0.1.0
func (*Client) LoadSignInRsp ¶ added in v0.1.0
func (*Client) OnNetClosed ¶ added in v0.1.0
func (c *Client) OnNetClosed()
func (*Client) Status ¶
func (c *Client) Status() *ClientStatus
type ClientConfig ¶
type ClientConfig struct {
Conn interface{}
}
type ClientStatus ¶
type ClientStatus struct { PingMS int64 `json:"pingMS,omitempty"` // contains filtered or unexported fields }
func NewClientStatus ¶
func NewClientStatus() *ClientStatus
func (*ClientStatus) MergePingMS ¶ added in v0.1.0
func (cs *ClientStatus) MergePingMS(ms int64)
Click to show internal directories.
Click to hide internal directories.