Documentation ¶
Index ¶
- Variables
- type Client
- func (s *Client) Close()
- func (s *Client) ConnectToWebsocket() error
- func (s *Client) GetJSON(key string, dst interface{}) error
- func (s *Client) GetKey(key string) (string, error)
- func (s *Client) SetJSON(key string, data interface{}) error
- func (s *Client) SetKey(key string, data string) error
- func (s *Client) Subscribe(key string) (chan string, error)
- func (s *Client) Unsubscribe(key string, chn chan string) error
- type ClientOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string Logger logrus.FieldLogger // contains filtered or unexported fields }
func (*Client) ConnectToWebsocket ¶
type ClientOptions ¶
type ClientOptions struct { Headers http.Header Logger logrus.FieldLogger }
Click to show internal directories.
Click to hide internal directories.