Documentation
¶
Overview ¶
Package maintenance wires the maintenance domain — stale-message cleanup and PR reconcile — into an fx module. This file is the only fx-aware part of the domain; the domain, application, and infrastructure layers stay framework-free.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("maintenance", fx.Provide( fx.Annotate( infrastructure.NewPRRepository, fx.As(new(domain.StaleMessageDeleter)), fx.As(new(domain.OpenLister)), fx.As(new(domain.Closer)), fx.As(new(domain.Deleter)), ), fx.Annotate( infrastructure.NewGitHubChecker, fx.As(new(domain.PRChecker)), ), provideCleanerParams, fx.Annotate( application.NewCleaner, fx.As(new(domain.StaleMessageCleaner)), ), provideReconcilerParams, fx.Annotate( application.NewReconciler, fx.As(new(domain.Reconciler)), ), ), )
Module binds the maintenance ports to their adapters and use cases. It expects the composition root to supply the external inputs it cannot build itself: the store's *store.PullRequests, an infrastructure.PRStateGetter (the GitHub client), a *slog.Logger, and a Config.
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package application holds the maintenance use cases — stale-message cleanup and PR reconcile — implemented against the ports declared in the maintenance domain layer.
|
Package application holds the maintenance use cases — stale-message cleanup and PR reconcile — implemented against the ports declared in the maintenance domain layer. |
|
Package domain holds the maintenance domain's contracts: the ports, DTOs, enums, and constants for stale-message cleanup and PR reconcile.
|
Package domain holds the maintenance domain's contracts: the ports, DTOs, enums, and constants for stale-message cleanup and PR reconcile. |
|
Package infrastructure holds the maintenance adapters: the store-backed PR repository and the GitHub PR-state checker, each implementing a maintenance domain port.
|
Package infrastructure holds the maintenance adapters: the store-backed PR repository and the GitHub PR-state checker, each implementing a maintenance domain port. |
Click to show internal directories.
Click to hide internal directories.