supervisor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

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

func NewSupervisor

func NewSupervisor(opts ...SupervisorOpt) *Supervisor

func (*Supervisor) FetchAndProcess

func (s *Supervisor) FetchAndProcess(ctx context.Context, f *models.Flow, sink *models.Sink) error

func (*Supervisor) HandleReadyQueue

func (s *Supervisor) HandleReadyQueue(ctx context.Context, f *models.Flow, sink *models.Sink)

func (*Supervisor) HandleScheduledQueue

func (s *Supervisor) HandleScheduledQueue(ctx context.Context, f *models.Flow, sink *models.Sink)

func (*Supervisor) MoveDueScheduled

func (s *Supervisor) MoveDueScheduled(ctx context.Context, f *models.Flow, sink *models.Sink) error

func (*Supervisor) Shutdown

func (s *Supervisor) Shutdown()

func (*Supervisor) Start

func (s *Supervisor) Start()

type SupervisorOpt

type SupervisorOpt func(s *Supervisor)

func WithAppConfig

func WithAppConfig(appConf *lib.AppConfig) SupervisorOpt

func WithInhooksConfigService

func WithInhooksConfigService(inhooksConfigSvc services.InhooksConfigService) SupervisorOpt

func WithLogger

func WithLogger(logger *zap.Logger) SupervisorOpt

func WithMessageFetcher

func WithMessageFetcher(messageFetcher services.MessageFetcher) SupervisorOpt

func WithMessageProcessor

func WithMessageProcessor(messageProcessor services.MessageProcessor) SupervisorOpt

func WithProcessingResultsService

func WithProcessingResultsService(processingResultsSvc services.ProcessingResultsService) SupervisorOpt

func WithSchedulerService

func WithSchedulerService(schedulerService services.SchedulerService) SupervisorOpt

Jump to

Keyboard shortcuts

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