redis

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisQueue

func NewRedisQueue(opts Options, logger *zap.SugaredLogger) (queue.Queue, error)

Types

type Options added in v0.8.0

type Options struct {
	StreamName        string
	ConsumerGroupName string
	ConsumerName      string
	VisibilityTimeout time.Duration
	Listeners         int

	Client *redis.Client
}

type RedisQueue

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

func (*RedisQueue) Enqueue

func (q *RedisQueue) Enqueue(ctx context.Context, message *queue.Message) error

func (*RedisQueue) StartListen added in v0.8.0

func (q *RedisQueue) StartListen(ctx context.Context, handler queue.HandlerFunc)

func (*RedisQueue) Stats added in v0.8.0

func (q *RedisQueue) Stats() map[string]interface{}

Jump to

Keyboard shortcuts

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