Documentation
¶
Index ¶
- type PubSubDriver
- func (p *PubSubDriver) Connections(topic string, res map[string]struct{})
- func (p *PubSubDriver) Next(ctx context.Context) (*pubsub.Message, error)
- func (p *PubSubDriver) Publish(msg *pubsub.Message) error
- func (p *PubSubDriver) PublishAsync(msg *pubsub.Message)
- func (p *PubSubDriver) Subscribe(connectionID string, topics ...string) error
- func (p *PubSubDriver) Unsubscribe(connectionID string, topics ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSubDriver ¶
func NewPubSubDriver ¶
func NewPubSubDriver(log logger.Logger, _ string) (*PubSubDriver, error)
func (*PubSubDriver) Connections ¶
func (p *PubSubDriver) Connections(topic string, res map[string]struct{})
func (*PubSubDriver) PublishAsync ¶
func (p *PubSubDriver) PublishAsync(msg *pubsub.Message)
func (*PubSubDriver) Subscribe ¶
func (p *PubSubDriver) Subscribe(connectionID string, topics ...string) error
func (*PubSubDriver) Unsubscribe ¶
func (p *PubSubDriver) Unsubscribe(connectionID string, topics ...string) error
Click to show internal directories.
Click to hide internal directories.