stateconfigwatcher

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 9 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 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 offers 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