pubSub

package
v1.1.52 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	RedisClient redis.UniversalClient
	Service     string
}

type Svc added in v1.1.25

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

func NewSvc added in v1.1.33

func NewSvc(optChain ...*Option) *Svc

func (*Svc) Publish added in v1.1.25

func (s *Svc) Publish(ctx context.Context, topic string, msg interface{}) error

func (*Svc) RunConsumer added in v1.1.25

func (s *Svc) RunConsumer(topic string, f func(msg string) error) error

Jump to

Keyboard shortcuts

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