Back to

package fanconfigurer

v0.0.0 (4dcf1d7)
Latest Go to latest
Published: 1 day ago | License: AGPL-3.0 | Module:


func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency manifold that runs a fan configurer worker, using the resource names defined in the supplied config.

type FanConfigurer

type FanConfigurer struct {
	// contains filtered or unexported fields

func NewFanConfigurer

func NewFanConfigurer(config FanConfigurerConfig, clock clock.Clock) (*FanConfigurer, error)

func (*FanConfigurer) Kill

func (fc *FanConfigurer) Kill()

Kill implements Worker.Kill()

func (*FanConfigurer) Wait

func (fc *FanConfigurer) Wait() error

Wait implements Worker.Wait()

type FanConfigurerConfig

type FanConfigurerConfig struct {
	Facade FanConfigurerFacade

type FanConfigurerFacade

type FanConfigurerFacade interface {
	FanConfig() (network.FanConfig, error)
	WatchForFanConfigChanges() (watcher.NotifyWatcher, error)

type ManifoldConfig

type ManifoldConfig struct {
	// These are the dependency resource names.
	APICallerName string
	Clock         clock.Clock

ManifoldConfig defines the names of the manifolds on which a Manifold will depend.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier