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 for running a raftbackstop worker.
Types ¶
type Config ¶
type Config struct { Raft RaftNode LogStore raft.LogStore Hub *pubsub.StructuredHub Logger Logger LocalID raft.ServerID }
Config holds the values needed by the worker.
type Logger ¶
type Logger interface { Infof(message string, args ...interface{}) Debugf(message string, args ...interface{}) }
Logger represents the logging methods called.
type ManifoldConfig ¶
type ManifoldConfig struct { RaftName string CentralHubName string AgentName string Logger loggo.Logger NewWorker func(Config) (worker.Worker, error) }
ManifoldConfig holds the information necessary to run a worker for maintaining the raft backstop configuration in a dependency.Engine.
Click to show internal directories.
Click to hide internal directories.