publish

package
v0.0.0-...-bc47110 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Publish(ctx context.Context, topic string, data string) error
}

type RedisPublish

type RedisPublish struct {
	DB *redis.Client
}

func NewRedisPublish

func NewRedisPublish(connString string) (r *RedisPublish, err error)

func (*RedisPublish) Publish

func (r *RedisPublish) Publish(ctx context.Context, topic string, data string) error

Jump to

Keyboard shortcuts

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