Documentation ¶
Index ¶
Constants ¶
View Source
const (
PollInterval = time.Second
)
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency manifold that runs the query logger worker, using the resource names defined in the supplied config.
Types ¶
type ManifoldConfig ¶
ManifoldConfig contains: - The names of other manifolds on which the DB accessor depends. - Other dependencies from ManifoldsConfig required by the worker.
func (ManifoldConfig) Validate ¶
func (cfg ManifoldConfig) Validate() error
type WorkerConfig ¶
type WorkerConfig struct { LogDir string Clock clock.Clock Logger Logger StackGatherer func() []byte }
WorkerConfig encapsulates the configuration options for the dbaccessor worker.
func (*WorkerConfig) Validate ¶
func (c *WorkerConfig) Validate() error
Validate ensures that the config values are valid.
Click to show internal directories.
Click to hide internal directories.