Documentation
¶
Overview ¶
Package manager implements the component manager
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface {
// Init initializes the component and prepares it for execution.
Init(context.Context) error
// Start starts the component.
Start(context.Context) error
// Stop stops this component, potentially cleaning up any temporary
// resources attached to it.
Stop() error
}
Component defines the lifecycle of managed components.
type Manager ¶
type Manager struct {
Components []Component
ReadyWaitDuration time.Duration
// contains filtered or unexported fields
}
Manager manages components
Click to show internal directories.
Click to hide internal directories.