manager

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL