Documentation ¶
Index ¶
- func MakeBatched[T any](batchSize int, things []T, fn func(group []T) error) error
- type JobsController
- type JobsControllerImpl
- type JobsControllerOpt
- func WithAlerter(a hatcheterrors.Alerter) JobsControllerOpt
- func WithDataDecoderValidator(dv datautils.DataDecoderValidator) JobsControllerOpt
- func WithLogger(l *zerolog.Logger) JobsControllerOpt
- func WithMessageQueue(mq msgqueue.MessageQueue) JobsControllerOpt
- func WithPartition(p *partition.Partition) JobsControllerOpt
- func WithPgxStatsLoggerConfig(lc *shared.LoggerConfigFile) JobsControllerOpt
- func WithQueueLoggerConfig(lc *shared.LoggerConfigFile) JobsControllerOpt
- func WithRepository(r repository.EngineRepository) JobsControllerOpt
- type JobsControllerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobsController ¶
type JobsControllerImpl ¶
type JobsControllerImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(fs ...JobsControllerOpt) (*JobsControllerImpl, error)
func (*JobsControllerImpl) Start ¶
func (jc *JobsControllerImpl) Start() (func() error, error)
type JobsControllerOpt ¶
type JobsControllerOpt func(*JobsControllerOpts)
func WithAlerter ¶ added in v0.15.2
func WithAlerter(a hatcheterrors.Alerter) JobsControllerOpt
func WithDataDecoderValidator ¶
func WithDataDecoderValidator(dv datautils.DataDecoderValidator) JobsControllerOpt
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
func WithRepository ¶
func WithRepository(r repository.EngineRepository) JobsControllerOpt
type JobsControllerOpts ¶
type JobsControllerOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.