Documentation ¶
Index ¶
- type Dispatcher
- func (d *Dispatcher) Connect() error
- func (d *Dispatcher) Disconnect() error
- func (d *Dispatcher) Publish(subscription string, authToken string, data message.Data) (err error)
- func (d *Dispatcher) SetTransport(t transport.Transport)
- func (d *Dispatcher) Subscribe(channel string, authToken string) (*subscription.Subscription, error)
- func (d *Dispatcher) Unsubscribe(sub *subscription.Subscription) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(endpoint string, tOpts transport.Options, ext message.Extensions) *Dispatcher
func (*Dispatcher) Disconnect ¶
func (d *Dispatcher) Disconnect() error
func (*Dispatcher) SetTransport ¶
func (d *Dispatcher) SetTransport(t transport.Transport)
func (*Dispatcher) Subscribe ¶
func (d *Dispatcher) Subscribe(channel string, authToken string) (*subscription.Subscription, error)
func (*Dispatcher) Unsubscribe ¶
func (d *Dispatcher) Unsubscribe(sub *subscription.Subscription) error
Click to show internal directories.
Click to hide internal directories.