worker

package
v0.0.0-...-d24e03e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle func(payload string) (string, error)

type PostResult

type PostResult func(result string, err error)

type Worker

type Worker interface {
	Work() error
}

func NewWorker

func NewWorker(jobType string,
	visiblityTimeout time.Duration,
	handle Handle,
	postResult PostResult,
	queue redisqueue.Queue,
	locker dlock.Lock,
) Worker

Jump to

Keyboard shortcuts

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