maintenance

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 6 Imported by: 0

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

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

type Config

type Config struct {
	TTL    time.Duration
	DryRun bool
}

Config carries the maintenance module's runtime configuration — the stale-message TTL and the reconcile dry-run flag — supplied as a single value by the composition root (or a test), avoiding fx collisions between bare scalars.

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.

Jump to

Keyboard shortcuts

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