Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol interface { AddListener(event int, channel chan<- json.RawMessage) RemoveListener(event int, channel chan<- json.RawMessage) RemoveAllListeners(event int) Once(event int, channel chan<- json.RawMessage) ListenerCount(event int) int Connect() (bool, error) Send([]byte, types.QueryOptions, chan<- *types.KuzzleResponse, string) error Close() error State() int EmitEvent(int, interface{}) RegisterSub(string, string, json.RawMessage, bool, chan<- types.NotificationResult, chan<- interface{}) UnregisterSub(string) CancelSubs() RequestHistory() map[string]time.Time IsReady() bool // property getters Host() string Port() int SslConnection() bool }
Protocol provides functions to manage many connection type (websocket...)
Click to show internal directories.
Click to hide internal directories.