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 WithPartitionId(pid string) JobsControllerOpt
- func WithRepository(r repository.EngineRepository) JobsControllerOpt
- type JobsControllerOpts
- type Partition
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 WithPartitionId ¶ added in v0.34.2
func WithPartitionId(pid string) JobsControllerOpt
func WithRepository ¶
func WithRepository(r repository.EngineRepository) JobsControllerOpt
type JobsControllerOpts ¶
type JobsControllerOpts struct {
// contains filtered or unexported fields
}
type Partition ¶ added in v0.42.0
type Partition struct {
// contains filtered or unexported fields
}
func NewPartition ¶ added in v0.42.0
func NewPartition( mq msgqueue.MessageQueue, l *zerolog.Logger, repo repository.EngineRepository, dv datautils.DataDecoderValidator, a *hatcheterrors.Wrapped, partitionId string, ) (*Partition, error)
Click to show internal directories.
Click to hide internal directories.