Documentation
¶
Index ¶
- Variables
- func NewBackgroundOrchestrator(name string) a.Component
- type Orchestrator
- func (o *Orchestrator) Handle(ctx context.Context, t Task) (Task, error)
- func (o *Orchestrator) Shutdown(ctx context.Context) error
- func (o *Orchestrator) Start(ctx context.Context) error
- func (o *Orchestrator) WithHandler(h TaskHandler, t reflect.Type) *Orchestrator
- func (o *Orchestrator) WithLogger(l *slog.Logger) *Orchestrator
- type Task
- type TaskHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOrchestratorStopped error ErrOrchestratorTimeout error ErrOrchestratorUnknownHandler error ErrOrchestratorUndefinedConcurrency error )
Functions ¶
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(name string) *Orchestrator
func (*Orchestrator) WithHandler ¶
func (o *Orchestrator) WithHandler(h TaskHandler, t reflect.Type) *Orchestrator
func (*Orchestrator) WithLogger ¶
func (o *Orchestrator) WithLogger(l *slog.Logger) *Orchestrator
Click to show internal directories.
Click to hide internal directories.