jobs

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBatched added in v0.42.0

func MakeBatched[T any](batchSize int, things []T, fn func(group []T) error) error

Types

type JobsController

type JobsController interface {
	Start(ctx context.Context) error
}

type JobsControllerImpl

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

func New

func (*JobsControllerImpl) Start

func (jc *JobsControllerImpl) Start() (func() error, error)

type JobsControllerOpt

type JobsControllerOpt func(*JobsControllerOpts)

func WithAlerter added in v0.15.2

func WithLogger

func WithLogger(l *zerolog.Logger) JobsControllerOpt

func WithMessageQueue added in v0.16.0

func WithMessageQueue(mq msgqueue.MessageQueue) JobsControllerOpt

func WithPartition added in v0.43.1

func WithPartition(p *partition.Partition) JobsControllerOpt

func WithPgxStatsLoggerConfig added in v0.43.2

func WithPgxStatsLoggerConfig(lc *shared.LoggerConfigFile) JobsControllerOpt

func WithQueueLoggerConfig added in v0.43.2

func WithQueueLoggerConfig(lc *shared.LoggerConfigFile) JobsControllerOpt

type JobsControllerOpts

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

Jump to

Keyboard shortcuts

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