internal/

directory
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT

Directories

Path Synopsis
Package app is the composition root for notifycat.
Package app is the composition root for notifycat.
Package cleanup runs the scheduled, in-process pruning of stale rows from the slack_messages table.
Package cleanup runs the scheduled, in-process pruning of stale rows from the slack_messages table.
Package config loads runtime configuration from environment variables (and optionally from a .env file in development).
Package config loads runtime configuration from environment variables (and optionally from a .env file in development).
Package doctor runs end-to-end preflight diagnostics for a notifycat installation.
Package doctor runs end-to-end preflight diagnostics for a notifycat installation.
Package github is a minimal GitHub API client covering only the endpoints notifycat needs for validation.
Package github is a minimal GitHub API client covering only the endpoints notifycat needs for validation.
Package githubhook authenticates and parses inbound GitHub webhook requests.
Package githubhook authenticates and parses inbound GitHub webhook requests.
Package mappings owns the declarative repository → Slack-channel configuration: parsing mappings.yaml, the in-memory Provider used at runtime, and the mappings.lock cache that records which entries have been validated.
Package mappings owns the declarative repository → Slack-channel configuration: parsing mappings.yaml, the in-memory Provider used at runtime, and the mappings.lock cache that records which entries have been validated.
Package pullrequest holds the domain model for GitHub pull-request events and the handlers that update Slack in response.
Package pullrequest holds the domain model for GitHub pull-request events and the handlers that update Slack in response.
Package slack talks to the Slack Web API for the PR notifier: posting, updating, and deleting messages, adding emoji reactions, and composing the text of the notification.
Package slack talks to the Slack Web API for the PR notifier: posting, updating, and deleting messages, adding emoji reactions, and composing the text of the notification.
Package store owns the database schema, GORM models, repositories, and the goose-driven migration runner.
Package store owns the database schema, GORM models, repositories, and the goose-driven migration runner.
Package validate verifies that a repository → Slack-channel mapping is usable end-to-end before GitHub fires a real PR event: the mapping row exists, the channel ID is well-formed, the Slack bot has the right scopes and is a member of the channel, and (when GitHub credentials are available) the webhook is subscribed to the events notifycat needs.
Package validate verifies that a repository → Slack-channel mapping is usable end-to-end before GitHub fires a real PR event: the mapping row exists, the channel ID is well-formed, the Slack bot has the right scopes and is a member of the channel, and (when GitHub credentials are available) the webhook is subscribed to the events notifycat needs.

Jump to

Keyboard shortcuts

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