factory

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package factory wires concrete dependencies for the go-version-watcher binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKafkaSender

func CreateKafkaSender(
	syncProducer libkafka.SyncProducer,
	topicPrefix base.TopicPrefix,
	defaultVault string,
) task.CreateCommandSender

CreateKafkaSender constructs a typed create-task command sender backed by a Kafka sync producer. defaultVault is the Obsidian vault slug substituted into each command's TargetVault when unset (empty = controller default, openclaw).

func CreateWatcher

func CreateWatcher(
	httpClient *http.Client,
	sender task.CreateCommandSender,
	cursorPath string,
	metrics pkg.Metrics,
	cfg pkg.TaskConfig,
	seedVersion string,
) pkg.Watcher

CreateWatcher wires all dependencies and returns a ready-to-use Watcher.

Pure composition — no I/O. The Kafka sync producer and the task sender are constructed by the caller (so it controls connection lifecycle + cleanup).

Types

This section is empty.

Jump to

Keyboard shortcuts

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