manager

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

manager defines a runtime manager, similar in concept to kubernetes controller-runtime but simplified for the needs of this project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Data *datastore.Data
	Log  *zap.SugaredLogger
	// contains filtered or unexported fields
}

Manager defines the overall runtime manager.

func NewManager

func NewManager() (*Manager, error)

NewManager returns an instantiated manager.

func (*Manager) AddController

func (m *Manager) AddController(name string, c controller, t time.Duration)

AddController adds a controller for start up.

func (*Manager) Start

func (m *Manager) Start() error

Start starts all controllers.

Jump to

Keyboard shortcuts

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