app

package
v0.21.1 Latest Latest
Warning

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

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

Documentation

Overview

Package app is the composition root for notifycat. It wires config, database, Slack client, event handlers, and HTTP routes into a single runnable server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

type Cleanup func()

Cleanup releases resources acquired by Wire (database connections, ...).

func Wire

Wire builds the HTTP server, the stale-row cleanup scheduler, the stuck-PR digest scheduler (nil when the digest is disabled), and the shared cleanup func from cfg. Callers run the server and both schedulers in separate goroutines and invoke cleanup on shutdown.

Mappings come from the `mappings:` section of config.yaml; the server refuses to start if any entry fails validation (against the per-entry lock).

Jump to

Keyboard shortcuts

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