Documentation ¶
Index ¶
- func NewClient(server agent.Server, conn net.Conn, ip string) agent.Client
- func NewServer(agent *agent.Agent) agent.Server
- type Client
- func (c *Client) Close()
- func (c *Client) Closed() bool
- func (c *Client) Destroy()
- func (c *Client) Id() string
- func (c *Client) Log() *logger.Helper
- func (c *Client) Meta() *agent.Meta
- func (c *Client) Read() (*codec.ClientHead, []byte, error)
- func (c *Client) Server() agent.Server
- func (c *Client) SetAuthState(state bool)
- func (c *Client) Write(b []byte)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.