Versions in this module Expand all Collapse all v1 v1.1.2 Jul 8, 2021 v1.1.0 Jul 8, 2021 Changes in this version + type Client struct + Connected bool + IncomingMsgChan chan *cherryMessage.Message + func New(requestTimeout ...time.Duration) *Client + func (c *Client) ConnectTo(addr string) error + func (c *Client) ConnectToTLS(addr string, skipVerify bool) error + func (c *Client) ConnectedStatus() bool + func (c *Client) Disconnect() + func (c *Client) MsgChannel() chan *cherryMessage.Message + func (c *Client) SendNotify(route string, data []byte) error + func (c *Client) SendRequest(route string, data []byte) (uint64, error) + type HandshakeData struct + Code int + Sys HandshakeSys + type HandshakeSys struct + Dict map[string]uint16 + Heartbeat int + Serializer string + type IClient interface + ConnectTo func(addr string) error + ConnectToTLS func(addr string, skipVerify bool) error + ConnectedStatus func() bool + Disconnect func() + MsgChannel func() chan *cherryMessage.Message + SendNotify func(route string, data []byte) error + SendRequest func(route string, data []byte) (uint64, error)