diagnostics

package
v0.22.2 Latest Latest
Warning

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

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

Documentation

Overview

Package diagnostics wires the diagnostics domain — doctor preflight checks, config-CLI validation, and smoke delivery tests — 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 diagnostics ports to their implementations. The composition root must supply the following external inputs:

  • *persistence.PullRequests
  • *slack.Client
  • *http.Client
  • routingdomain.RoutingProvider (satisfies SmokeMappings Get)
  • diagnosticsdomain.EntrySource (the routing provider for MappingsValidator)
  • validationdomain.RepoValidator
  • validationdomain.RepoLister (may be nil via a provider func)
  • diagnostics.Config

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigSnapshot diagnosticsdomain.ConfigSnapshot
	SmokeConfig    diagnosticsdomain.SmokeConfig
	LockPath       string
	Clock          func() time.Time
}

Config carries the composition-root-supplied, config-derived values the diagnostics use cases need but the module cannot build itself.

Directories

Path Synopsis
Package application holds the diagnostics use cases — the doctor, the config list/validate CLI, and the smoke delivery — behind the domain's use-case interfaces.
Package application holds the diagnostics use cases — the doctor, the config list/validate CLI, and the smoke delivery — behind the domain's use-case interfaces.
Package domain defines the diagnostics domain's ports, DTOs, and constants — the operator-tooling contracts (preflight doctor, config CLI, smoke delivery).
Package domain defines the diagnostics domain's ports, DTOs, and constants — the operator-tooling contracts (preflight doctor, config CLI, smoke delivery).
Package infrastructure holds the diagnostics adapters: the config snapshot and database probe, the routing lock gateway, the request signer, the webhook sender, the report writer, and the smoke store/Slack adapters.
Package infrastructure holds the diagnostics adapters: the config snapshot and database probe, the routing lock gateway, the request signer, the webhook sender, the report writer, and the smoke store/Slack adapters.

Jump to

Keyboard shortcuts

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