dqueue

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

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayQueue

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

func NewDelayQueue

func NewDelayQueue(name string, interval time.Duration, rd *redis.Client, handler Handler) *DelayQueue

func (*DelayQueue) Push

func (dq *DelayQueue) Push(ctx context.Context, req *delay.DelayTaskRequest) error

func (*DelayQueue) Start

func (dq *DelayQueue) Start()

func (*DelayQueue) Stop

func (dq *DelayQueue) Stop()

type Handler

type Handler func(taskID int64) error

Jump to

Keyboard shortcuts

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