worker

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTickerInterval = 2 * time.Second
	MaxFreqResultItems    = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	ID string
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(
	workerID string,
	radapter *rdb.Adapter,
	messages <-chan *redis.Message,
	exitEvent chan os.Signal,
	jobLogger jobLogger,
) *Worker

func (*Worker) Listen

func (w *Worker) Listen()

Jump to

Keyboard shortcuts

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