pubSub

package
v1.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opt *Option)

func Publish

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

func RunConsumer

func RunConsumer(topic string, f func(msg string) error) error

Types

type Option

type Option struct {
	RedisClient redis.UniversalClient
	Service     string
}

Jump to

Keyboard shortcuts

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