Documentation ¶
Index ¶
- Variables
- type Client
- func (s *Client) Close()
- func (s *Client) ConnectToWebsocket() error
- func (s *Client) GetByPrefix(prefix string) (map[string]string, error)
- func (s *Client) GetJSON(key string, dst interface{}) error
- func (s *Client) GetKey(key string) (string, error)
- func (s *Client) GetKeys(keys []string) (map[string]string, error)
- func (s *Client) ListKeys(prefix string) ([]string, error)
- func (s *Client) SetJSON(key string, data interface{}) error
- func (s *Client) SetJSONs(data map[string]interface{}) error
- func (s *Client) SetKey(key string, data string) error
- func (s *Client) SetKeys(data map[string]string) error
- func (s *Client) SubscribeKey(key string) (chan KeyValuePair, error)
- func (s *Client) SubscribePrefix(prefix string) (chan KeyValuePair, error)
- func (s *Client) UnsubscribeKey(key string, chn chan KeyValuePair) error
- func (s *Client) UnsubscribePrefix(prefix string, chn chan KeyValuePair) error
- type ClientOptions
- type KeyValuePair
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 ¶
func (*Client) SubscribeKey ¶
func (s *Client) SubscribeKey(key string) (chan KeyValuePair, error)
func (*Client) SubscribePrefix ¶
func (s *Client) SubscribePrefix(prefix string) (chan KeyValuePair, error)
func (*Client) UnsubscribeKey ¶
func (s *Client) UnsubscribeKey(key string, chn chan KeyValuePair) error
func (*Client) UnsubscribePrefix ¶
func (s *Client) UnsubscribePrefix(prefix string, chn chan KeyValuePair) error
type ClientOptions ¶
type ClientOptions struct { Headers http.Header Logger logrus.FieldLogger }
type KeyValuePair ¶
Click to show internal directories.
Click to hide internal directories.