Documentation ¶
Index ¶
- type Client
- func (client *Client) Connect() context.Context
- func (client *Client) Disconnect() error
- func (client *Client) Emit(eventName string, data interface{}) error
- func (client *Client) EmitAck(eventName string, data interface{}, timeout time.Duration, ack EmitAckFunc) error
- func (client *Client) GetAuthToken() *string
- func (client *Client) GetLogger() logr.Logger
- func (client *Client) IsConnected() bool
- func (client *Client) On(eventName string, ack func(eventName string, data interface{}))
- func (client *Client) OnAck(eventName string, ack func(eventName string, data interface{}, ...))
- func (client *Client) OnChannel(eventName string, ack func(eventName string, data interface{}))
- func (client *Client) Publish(channelName string, data interface{}) error
- func (client *Client) PublishAck(channelName string, data interface{}, timeout time.Duration, ...) error
- func (client *Client) SetAuthToken(token string)
- func (client *Client) SetAuthenticationListener(onSetAuthentication func(client Client, token string), ...)
- func (client *Client) SetBasicListener(onConnect func(client Client), onConnectError func(client Client, err error), ...)
- func (client *Client) Subscribe(channelName string) error
- func (client *Client) SubscribeAck(channelName string, timeout time.Duration, ...) error
- func (client *Client) Unsubscribe(channelName string) error
- func (client *Client) UnsubscribeAck(channelName string, timeout time.Duration, ...) error
- type EmitAckFunc
- type Empty
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ConnectionOptions gowebsocket.ConnectionOptions RequestHeader http.Header Listener // contains filtered or unexported fields }
func (*Client) Disconnect ¶
func (*Client) GetAuthToken ¶
func (*Client) IsConnected ¶
func (*Client) PublishAck ¶
func (*Client) SetAuthToken ¶
func (*Client) SetAuthenticationListener ¶
func (*Client) SetBasicListener ¶
func (*Client) SubscribeAck ¶
func (*Client) Unsubscribe ¶
type EmitAckFunc ¶
type EmitAckFunc func(eventName string, error interface{}, data interface{})
Click to show internal directories.
Click to hide internal directories.