pubsub

package
v0.0.0-...-e4e1157 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID      string
	Payload []byte
}

type PubSub

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

func New

func New(client *redis.Client) *PubSub

func (*PubSub) Close

func (c *PubSub) Close() error

func (*PubSub) Publish

func (c *PubSub) Publish(ctx context.Context, channel, id string, payload []byte) error

func (*PubSub) Subscribe

func (c *PubSub) Subscribe(ctx context.Context, channel string) (<-chan *Message, error)

Jump to

Keyboard shortcuts

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