wiring

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEffectiveConfig added in v0.6.1

func ApplyEffectiveConfig(appCtx *app.Context, effective *config.Config) error

func BindApplicationModules added in v0.6.1

func BindApplicationModules(appCtx *app.Context)

func BootstrapStores added in v0.6.1

func BootstrapStores(appCtx *app.Context) error

BootstrapStores initializes long-lived stores and cache dependencies once.

func BuildArrNotifier

func BuildArrNotifier(ctx context.Context, appCtx *app.Context) error

func BuildDownloader

func BuildDownloader(appCtx *app.Context) error

Build downloader-owned runtime from app context config.

func BuildInitialRuntime

func BuildInitialRuntime(appCtx *app.Context) error

Central runtime assembly entrypoint so cmd/main stays thin

func BuildUsenetIndexer

func BuildUsenetIndexer(appCtx *app.Context) error

Build current effective Usenet/NZB Indexer runtime from app context.

func IndexingStageRuntimeSettingsFromPredb added in v0.7.0

func IndexingStageRuntimeSettingsFromPredb(in app.IndexingPreDBRuntimeSettings) app.IndexingStageRuntimeSettings

func IndexingStageRuntimeSettingsFromTMDB added in v0.7.0

func IndexingStageRuntimeSettingsFromTMDB(in app.IndexingTMDBRuntimeSettings) app.IndexingStageRuntimeSettings

func IsDownloaderReloadDeferred

func IsDownloaderReloadDeferred(err error) bool

func LoadAndApplyEffectiveConfig added in v0.6.1

func LoadAndApplyEffectiveConfig(ctx context.Context, appCtx *app.Context) error

func LoadEffectiveConfig added in v0.6.1

func LoadEffectiveConfig(ctx context.Context, appCtx *app.Context) (*config.Config, error)

func ReloadDownloaderIfIdle

func ReloadDownloaderIfIdle(appCtx *app.Context) error

Safely reload downloader runtime when queue is idle.

func RunIndexerAssembleScheduler added in v0.7.0

func RunIndexerAssembleScheduler(ctx context.Context, appCtx *app.Context) error

Long-running assemble mode restart loop lives outside cmd/main.

func RunIndexerEnrichPredbScheduler added in v0.7.0

func RunIndexerEnrichPredbScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerEnrichTMDBScheduler added in v0.7.0

func RunIndexerEnrichTMDBScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectArchiveScheduler added in v0.7.0

func RunIndexerInspectArchiveScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectDiscoveryScheduler added in v0.7.0

func RunIndexerInspectDiscoveryScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectMediaScheduler added in v0.7.0

func RunIndexerInspectMediaScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectNFOScheduler added in v0.7.0

func RunIndexerInspectNFOScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectPAR2Scheduler added in v0.7.0

func RunIndexerInspectPAR2Scheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectPasswordScheduler added in v0.7.0

func RunIndexerInspectPasswordScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerInspectScheduler added in v0.7.0

func RunIndexerInspectScheduler(ctx context.Context, appCtx *app.Context) error

func RunIndexerReleaseScheduler added in v0.7.0

func RunIndexerReleaseScheduler(ctx context.Context, appCtx *app.Context) error

Long-running release mode restart loop lives outside cmd/main.

func RunIndexerScrapeBackfillScheduler added in v0.7.0

func RunIndexerScrapeBackfillScheduler(ctx context.Context, appCtx *app.Context) error

Long-running backfill mode restart loop lives outside cmd/main.

func RunIndexerScrapeScheduler

func RunIndexerScrapeScheduler(ctx context.Context, appCtx *app.Context) error

Long-running scrape mode restart loop lives outside cmd/main.

func StartServerBackgroundLoops

func StartServerBackgroundLoops(ctx context.Context, appCtx *app.Context) error

StartServerBackgroundLoops starts only the long-running loops that should exist in API/server mode after runtime validation has passed.

func ValidateRuntimeForServer

func ValidateRuntimeForServer(appCtx *app.Context) error

Optional helper if you want a shared error string in callers later.

func WatchSettings

func WatchSettings(ctx context.Context, appCtx *app.Context)

Server-mode settings watcher moved out of cmd/main.

Types

This section is empty.

Jump to

Keyboard shortcuts

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