jobque

package
v0.0.0-...-4f0b896 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 Item

type Item struct {
	Url string `json:"url"`
}

type JobQueue

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

func New

func New(rclient *redis.Client) *JobQueue

func (*JobQueue) Dequeue

func (q *JobQueue) Dequeue(n int, timeout time.Duration) ([]*Item, error)

func (*JobQueue) Enqueue

func (q *JobQueue) Enqueue(item Item) error

func (*JobQueue) Size

func (q *JobQueue) Size() (int, error)

Jump to

Keyboard shortcuts

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