Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
svc.Worker
TerminationGracePeriod time.Duration
TerminationWaitPeriod time.Duration
// contains filtered or unexported fields
}
Orchestrator is a subclass of Nullworker which allows this worker to take on child workers and initialize them much like SVC does but in a slightly simpler way. The base worker is initialized and run last and shutdown first.
func NewOrchestrator ¶
func NewOrchestrator(baseWorker svc.Worker) *Orchestrator
func (*Orchestrator) AddSubWorker ¶
func (s *Orchestrator) AddSubWorker(name string, w svc.Worker) error
func (*Orchestrator) Run ¶
func (s *Orchestrator) Run() error
func (*Orchestrator) Terminate ¶
func (s *Orchestrator) Terminate() error
Click to show internal directories.
Click to hide internal directories.