redisqueue

package
v0.0.0-...-f4be871 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueueEmpty = errors.New("queue is empty")
)

Functions

This section is empty.

Types

type Queue

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

func NewQueue

func NewQueue(client *redis.Client, name string) *Queue

func (*Queue) Dequeue

func (q *Queue) Dequeue(data interface{}) error

func (*Queue) Enqueue

func (q *Queue) Enqueue(item interface{}) error

Jump to

Keyboard shortcuts

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