app

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 18 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, and the shared cleanup func from cfg. Callers run the server and the scheduler in separate goroutines and invoke cleanup on shutdown.

Mappings come from the declarative cfg.MappingsFile; the server refuses to start if any entry fails validation (against the per-entry lock cache).

Jump to

Keyboard shortcuts

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