Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientLen ¶
func GetClientLen() (size int)
Types ¶
type Client ¶
type Client struct { // 请求参数 Param ClientParam // 权限 Auth ClientAuth // client连接时取数据 ClientConnCall func(c *Client) [][]byte // 接收client消息 ClientMsgRecv func(c *Client, message []byte) // 广播消息权限过滤 ClientBroadFilter func(c *Client, item string) bool // client断开时回调 ClientUnRegCall func(param ClientParam) // contains filtered or unexported fields }
func (*Client) Client2Hub ¶
func (c *Client) Client2Hub()
func (*Client) GetRemoteAddr ¶
func (*Client) SendMessage ¶
type ClientAuth ¶
type ClientParam ¶
Click to show internal directories.
Click to hide internal directories.