memory

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemory

func NewInMemory(log logger.Logger) pubsub.PubSub

Types

type Plugin

type Plugin struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Plugin) Connections

func (p *Plugin) Connections(topic string, res map[string]struct{})

func (*Plugin) Next

func (p *Plugin) Next() (*websocketsv1.Message, error)

func (*Plugin) Publish

func (p *Plugin) Publish(message []byte) error

func (*Plugin) PublishAsync

func (p *Plugin) PublishAsync(message []byte)

func (*Plugin) Subscribe

func (p *Plugin) Subscribe(connectionID string, topics ...string) error

func (*Plugin) Unsubscribe

func (p *Plugin) Unsubscribe(connectionID string, topics ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL