Versions in this module Expand all Collapse all v2 v2.7.1 Jan 15, 2024 v2.7.0 Jan 12, 2024 Changes in this version + type Client struct + Connected bool + IncomingMsgChan chan *message.Message + func New(logLevel logrus.Level, requestTimeout ...time.Duration) *Client + func (c *Client) ConnectTo(addr string, tlsConfig ...*tls.Config) error + func (c *Client) ConnectToWS(addr string, path string, tlsConfig ...*tls.Config) error + func (c *Client) ConnectedStatus() bool + func (c *Client) Disconnect() + func (c *Client) MsgChannel() chan *message.Message + func (c *Client) SendNotify(route string, data []byte) error + func (c *Client) SendRequest(route string, data []byte) (uint, error) + func (c *Client) SetClientHandshakeData(data *session.HandshakeData) + type Command struct + type HandshakeData struct + Code int + Sys HandshakeSys + type HandshakeSys struct + Dict map[string]uint16 + Heartbeat int + Serializer string + type PitayaClient interface + ConnectTo func(addr string, tlsConfig ...*tls.Config) error + ConnectToWS func(addr string, path string, tlsConfig ...*tls.Config) error + ConnectedStatus func() bool + Disconnect func() + MsgChannel func() chan *message.Message + SendNotify func(route string, data []byte) error + SendRequest func(route string, data []byte) (uint, error) + SetClientHandshakeData func(data *session.HandshakeData) + type ProtoBufferInfo struct + Commands map[string]*Command + type ProtoClient struct + IncomingMsgChan chan *message.Message + func NewProto(docsRoute string, docslogLevel logrus.Level, requestTimeout ...time.Duration) *ProtoClient + func NewWithDescriptor(descriptorsRoute string, docsRoute string, docslogLevel logrus.Level, ...) *ProtoClient + func (pc *ProtoClient) AddPushResponse(route string, protoName string) + func (pc *ProtoClient) ConnectTo(addr string, tlsConfig ...*tls.Config) error + func (pc *ProtoClient) ConnectToWS(addr string, path string, tlsConfig ...*tls.Config) error + func (pc *ProtoClient) Disconnect() + func (pc *ProtoClient) ExportInformation() *ProtoBufferInfo + func (pc *ProtoClient) GetDescriptors(data string) error + func (pc *ProtoClient) LoadInfo(info *ProtoBufferInfo) error + func (pc *ProtoClient) LoadServerInfo(addr string) error + func (pc *ProtoClient) MsgChannel() chan *message.Message + func (pc *ProtoClient) SendNotify(route string, data []byte) error + func (pc *ProtoClient) SendRequest(route string, data []byte) (uint, error)