redis

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MPL-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg config.Configuration) (*redis.Client, taskq.Factory, error)

func NewQueue

func NewQueue(c *redis.Client, factory taskq.Factory, name string) queue.Queuer

Types

type RedisQueue

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

func (*RedisQueue) Close

func (q *RedisQueue) Close() error

func (*RedisQueue) Consumer

func (q *RedisQueue) Consumer() taskq.QueueConsumer

func (*RedisQueue) Write

func (q *RedisQueue) Write(ctx context.Context, name convoy.TaskName, msg *convoy.Message, delay time.Duration) error

Jump to

Keyboard shortcuts

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