Documentation
¶
Index ¶
- type Module
- func (m *Module) IsEnabled() bool
- func (m *Module) Publish(project, token, subject string, data interface{}) (int, error)
- func (m *Module) QueueSubscribe(project, token, clientID, subject, queue string, cb model.PubsubCallback) (int, error)
- func (m *Module) SetConfig(pubsub *config.Pubsub) error
- func (m *Module) Subscribe(project, token, clientID, subject string, cb model.PubsubCallback) (int, error)
- func (m *Module) Unsubscribe(clientID, subject string) (int, error)
- func (m *Module) UnsubscribeAll(clientID string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
Module is responsible for Pubsub
func (*Module) QueueSubscribe ¶
func (m *Module) QueueSubscribe(project, token, clientID, subject, queue string, cb model.PubsubCallback) (int, error)
QueueSubscribe subscribes to a particular subject (and its children) using a queue, if its permitted
func (*Module) Subscribe ¶
func (m *Module) Subscribe(project, token, clientID, subject string, cb model.PubsubCallback) (int, error)
Subscribe subscribes to a particular subject (and its children), if its permitted
func (*Module) Unsubscribe ¶
Unsubscribe unsubscribes a client from a particular subject
Click to show internal directories.
Click to hide internal directories.