queue

package
v0.0.0-...-e89c34c Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 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 Callback

type Callback func(topic, message string)

type Consumer

type Consumer interface {
	Consumer(ctx context.Context, callback Callback, topics ...string)
	Close()
}

func NewConsumerWithRedis

func NewConsumerWithRedis(client *redis.Client) Consumer

type ConsumerWithRedis

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

func (*ConsumerWithRedis) Close

func (s *ConsumerWithRedis) Close()

func (*ConsumerWithRedis) Consumer

func (s *ConsumerWithRedis) Consumer(ctx context.Context, callback Callback, topics ...string)

type PublishWithRedis

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

func (*PublishWithRedis) Publish

func (s *PublishWithRedis) Publish(ctx context.Context, topic string, message interface{})

type Publisher

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

func NewPublishWithRedis

func NewPublishWithRedis(client *redis.Client) Publisher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳