worker

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: GPL-3.0 Imports: 9 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
}

func New

func New(
	cfg *config.Config,
	log *zap.Logger,
	repos *repositories.Repositories,
) (*Worker, error)

func (*Worker) HandleMessage

func (wrk *Worker) HandleMessage(ctx context.Context, t *asynq.Task) error

func (*Worker) Run

func (wrk *Worker) Run()

func (*Worker) Shutdown

func (wrk *Worker) Shutdown() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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