factory

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

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