worker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

Worker works on jobs in the queue

func New

func New(ctx context.Context, logger hclog.Logger, c *config.Config, ch <-chan bool) (*Worker, error)

New creates a new Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context, wg *sync.WaitGroup)

Start starts the worker running in the background with the desired concurrency

Jump to

Keyboard shortcuts

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