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(config SupervisorConfig, newWorkerFunc worker.NewWorkerFunc, logger *zap.Logger) (*Supervisor, error)
func (*Supervisor) IsHealthy ¶
func (s *Supervisor) IsHealthy() bool
func (*Supervisor) Run ¶
func (s *Supervisor) Run(ctx context.Context, cancel context.CancelFunc) error
type SupervisorConfig ¶
type SupervisorConfig struct {
Workers []worker.WorkerConfig `yaml:"workers"`
}
func (*SupervisorConfig) IsValid ¶
func (s *SupervisorConfig) IsValid() error
type WorkerPoolAbstraction ¶
type WorkerPoolInfo ¶
type WorkerPoolInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.