scheduler

package
v0.51.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func New

func New(
	fs ...SchedulerOpt,
) (*Scheduler, error)

func (*Scheduler) Start

func (s *Scheduler) Start() (func() error, error)

type SchedulerOpt

type SchedulerOpt func(*SchedulerOpts)

func WithAlerter

func WithAlerter(a hatcheterrors.Alerter) SchedulerOpt

func WithDataDecoderValidator

func WithDataDecoderValidator(dv datautils.DataDecoderValidator) SchedulerOpt

func WithLogger

func WithLogger(l *zerolog.Logger) SchedulerOpt

func WithMessageQueue

func WithMessageQueue(mq msgqueue.MessageQueue) SchedulerOpt

func WithPartition

func WithPartition(p *partition.Partition) SchedulerOpt

func WithQueueLoggerConfig

func WithQueueLoggerConfig(lc *shared.LoggerConfigFile) SchedulerOpt

func WithSchedulerPool

func WithSchedulerPool(s *v2.SchedulingPool) SchedulerOpt

type SchedulerOpts

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

Jump to

Keyboard shortcuts

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