pubsub

package
v0.0.0-...-f2fa0db Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub struct {
	// contains filtered or unexported fields
}

func Get

func Get() *PubSub

func Init

func Init(ctx context.Context, rc redis.UniversalClient) (*PubSub, error)

func (*PubSub) AddHandler

func (ps *PubSub) AddHandler(topic string, handler func(*message.Message) error) error

func (*PubSub) Publish

func (ps *PubSub) Publish(topic string, message *message.Message) error

func (*PubSub) Run

func (ps *PubSub) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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