Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
controller.Interface
controller.Debuggable
controller.HealthCheckable
Start(ctx context.Context, numThreads int)
}
Controller is the interface we require for all controllers this manager will manage.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager ties a set of controllers to be lifecyled together and exposes common metrics, debug information, and health endpoints for the set.
func NewManager ¶
func NewManager(debugConfig *componentconfig.DebuggingConfiguration, address string) *Manager
NewManager returns a Manager object with settings for what and how to expose information for its managed set of controllers.
func (*Manager) StartControllers ¶
func (m *Manager) StartControllers(ctx context.Context, controllers ...Controller) error
StartControllers starts a set of controllers in an errgroup and serves health / debug endpoints for them. It stops when the context is cancelled. It will only have an effect the first time it is called.
Click to show internal directories.
Click to hide internal directories.