stateconfigwatcher

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold which wraps the machine agent's voyeur.Value which gets set whenever it the machine agent's config is changed. Whenever the config is updated the presence of state serving info is checked and if state serving info was added or removed the manifold worker will bounce itself.

The manifold offes a single boolean output which will be true if state serving info is available (i.e. the machine agent should be a state server) and false otherwise.

This manifold is intended to be used as a dependency for the state manifold.

Types

type ManifoldConfig

type ManifoldConfig struct {
	AgentName          string
	AgentConfigChanged *voyeur.Value
}

Jump to

Keyboard shortcuts

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