workermw

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithJobProcessorInstrumentation

func WithJobProcessorInstrumentation() func(worker.JobProcessor) worker.JobProcessor

Types

type JobProcessorInstrumentation

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

func (JobProcessorInstrumentation) Enqueue

func (mw JobProcessorInstrumentation) Enqueue(ctx context.Context, jobs ...worker.Job) (err error)

func (JobProcessorInstrumentation) GetSyncJobsByService added in v0.7.0

func (mw JobProcessorInstrumentation) GetSyncJobsByService(ctx context.Context, service string) ([]worker.Job, error)

func (JobProcessorInstrumentation) Process

func (mw JobProcessorInstrumentation) Process(ctx context.Context, types []string, fn worker.JobExecutorFunc) (err error)

func (JobProcessorInstrumentation) Stats

Jump to

Keyboard shortcuts

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