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 that runs a caasunitmanager worker, using the resource names defined in the supplied config.
Types ¶
type Hub ¶
type Hub interface { Publish(topic string, data interface{}) func() Subscribe(topic string, handler func(string, interface{})) func() }
Hub is a pubsub hub used for internal messaging.
type ManifoldConfig ¶
type ManifoldConfig struct { AgentName string APICallerName string Logger logger.Logger Clock clock.Clock Hub Hub }
ManifoldConfig defines the names of the manifolds on which a Manifold will depend.
func (*ManifoldConfig) Validate ¶
func (config *ManifoldConfig) Validate() error
Validate ensures all the required values for the config are set.
Click to show internal directories.
Click to hide internal directories.