Documentation
¶
Index ¶
- Constants
- func NewPubSubDriver(log logger.Logger, _ string) (pubsub.PubSub, error)
- type Plugin
- type PubSubDriver
- func (p *PubSubDriver) Connections(topic string, res map[string]struct{})
- func (p *PubSubDriver) Next() (*websocketsv1.Message, error)
- func (p *PubSubDriver) Publish(message []byte) error
- func (p *PubSubDriver) PublishAsync(message []byte)
- func (p *PubSubDriver) Subscribe(connectionID string, topics ...string) error
- func (p *PubSubDriver) Unsubscribe(connectionID string, topics ...string) error
Constants ¶
View Source
const PluginName string = "memory"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PubSubDriver ¶
func (*PubSubDriver) Connections ¶
func (p *PubSubDriver) Connections(topic string, res map[string]struct{})
func (*PubSubDriver) Next ¶
func (p *PubSubDriver) Next() (*websocketsv1.Message, error)
func (*PubSubDriver) Publish ¶
func (p *PubSubDriver) Publish(message []byte) error
func (*PubSubDriver) PublishAsync ¶
func (p *PubSubDriver) PublishAsync(message []byte)
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.