memorypubsub

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func NewPubSubDriver

func NewPubSubDriver(log *zap.Logger, _ string) (*Driver, error)

func (*Driver) Connections

func (d *Driver) Connections(topic string, res map[string]struct{})

func (*Driver) Next

func (d *Driver) Next(ctx context.Context) (*pubsub.Message, error)

func (*Driver) Publish

func (d *Driver) Publish(msg *pubsub.Message) error

func (*Driver) PublishAsync

func (d *Driver) PublishAsync(msg *pubsub.Message)

func (*Driver) Stop

func (d *Driver) Stop()

func (*Driver) Subscribe

func (d *Driver) Subscribe(connectionID string, topics ...string) error

func (*Driver) Unsubscribe

func (d *Driver) Unsubscribe(connectionID string, topics ...string) error

Jump to

Keyboard shortcuts

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