factory

package
v0.23.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-2-Clause Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigLoader added in v0.5.0

func CreateConfigLoader(filePath string) config.Loader

CreateConfigLoader constructs a config.Loader for the given file path. Pure composition: no I/O, no context creation.

func CreateNotificationSender added in v0.22.0

func CreateNotificationSender(
	ctx context.Context,
	syncProducer kafka.SyncProducer,
	topicPrefix base.TopicPrefix,
) notification.NotificationPublishCommandSender

CreateNotificationSender constructs the shared-core notification command sender backed by the given Kafka sync producer; topicPrefix selects the command topic. ctx feeds the request-ID channel so downstream cancellation propagates. Pure composition: no network calls at construction time.

func CreatePublishers added in v0.22.0

func CreatePublishers(
	cfg config.Config,
	sender notification.NotificationPublishCommandSender,
	topicPrefix base.TopicPrefix,
	currentDateTimeGetter libtime.CurrentDateTimeGetter,
) []publish.Publisher

CreatePublishers builds one Publisher per watcher entry, in config order, each with that entry's dedup window. Pure composition: no network calls at construction time.

func CreateWatcher added in v0.5.0

func CreateWatcher(cfg config.Config, publishers []publish.Publisher) watcher.Watcher

CreateWatcher constructs a watcher.Watcher that observes all configured vaults and fans out matching task events to all watcher entries. Pure composition: no filesystem access at construction time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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