Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mailcrier
command
Command mailcrier is a sendmail replacement that delivers the mail of cron, at and other system tools to chat and webhook services.
|
Command mailcrier is a sendmail replacement that delivers the mail of cron, at and other system tools to chat and webhook services. |
|
internal
|
|
|
app
Package app wires configuration, message, targets and delivery into one sendmail invocation.
|
Package app wires configuration, message, targets and delivery into one sendmail invocation. |
|
backend
Package backend holds the types shared by every delivery target: the Sender interface, target capabilities, the rendered payload and the classified delivery error.
|
Package backend holds the types shared by every delivery target: the Sender interface, target capabilities, the rendered payload and the classified delivery error. |
|
backend/discord
Package discord implements the discord target type: one execution of a channel webhook per message, with the attachments as files.
|
Package discord implements the discord target type: one execution of a channel webhook per message, with the attachments as files. |
|
backend/hook
Package hook implements the exec target type: one run of a program per message, with the message on its stdin and the envelope in its environment.
|
Package hook implements the exec target type: one run of a program per message, with the message on its stdin and the envelope in its environment. |
|
backend/ntfy
Package ntfy implements the ntfy target type: a JSON publish for the text and one more message per attachment, which ntfy allows one of.
|
Package ntfy implements the ntfy target type: a JSON publish for the text and one more message per attachment, which ntfy allows one of. |
|
backend/shoutrrr
Package shoutrrr implements the shoutrrr target type: one send per message through a service of github.com/nicholas-fedor/shoutrrr, chosen by the scheme of the URL.
|
Package shoutrrr implements the shoutrrr target type: one send per message through a service of github.com/nicholas-fedor/shoutrrr, chosen by the scheme of the URL. |
|
backend/slack
Package slack implements the slack target type through the Slack Web API: chat.postMessage for the text and the external upload methods for the attachments, which land in the thread of the message.
|
Package slack implements the slack target type through the Slack Web API: chat.postMessage for the text and the external upload methods for the attachments, which land in the thread of the message. |
|
backend/telegram
Package telegram implements the telegram target type: the Bot API methods sendMessage for the text and sendDocument for each attachment, the first one with the text as caption when it is short enough.
|
Package telegram implements the telegram target type: the Bot API methods sendMessage for the text and sendDocument for each attachment, the first one with the text as caption when it is short enough. |
|
backend/webhook
Package webhook implements the http target type: one request per message, POST unless configured otherwise, with the JSON document its template renders, or without a body for GET.
|
Package webhook implements the http target type: one request per message, POST unless configured otherwise, with the JSON document its template renders, or without a body for GET. |
|
config
Package config loads and validates the mailcrier TOML configuration.
|
Package config loads and validates the mailcrier TOML configuration. |
|
delivery
Package delivery renders a message for every target, sends it to all of them at once and turns the per-target outcomes into the process exit status.
|
Package delivery renders a message for every target, sends it to all of them at once and turns the per-target outcomes into the process exit status. |
|
golden
Package golden compares test output with golden files in txtar format: one file per fixture, one section per output.
|
Package golden compares test output with golden files in txtar format: one file per fixture, one section per output. |
|
message
Package message reads the mail a caller pipes into sendmail and exposes the parts a notification needs: decoded headers, the text of the body in UTF-8 and the attachments.
|
Package message reads the mail a caller pipes into sendmail and exposes the parts a notification needs: decoded headers, the text of the body in UTF-8 and the attachments. |
|
redact
Package redact replaces registered secrets with a mask in everything the process logs.
|
Package redact replaces registered secrets with a mask in everything the process logs. |
|
render
Package render turns a message into the text of one target with Go templates and fits that text into the target's length limit.
|
Package render turns a message into the text of one target with Go templates and fits that text into the target's length limit. |
|
route
Package route selects the targets of a message and decides which messages are suppressed.
|
Package route selects the targets of a message and decides which messages are suppressed. |
|
sendmail
Package sendmail parses a sendmail command line: flags in getopt style, the mode selected by argv[0], and the recipients.
|
Package sendmail parses a sendmail command line: flags in getopt style, the mode selected by argv[0], and the recipients. |
|
spool
Package spool keeps messages on disk until every target has them.
|
Package spool keeps messages on disk until every target has them. |
|
text
Package text escapes, measures and truncates text for the markup of each target.
|
Package text escapes, measures and truncates text for the markup of each target. |
|
scripts
|
|
|
check-commits
command
Command check-commits fails when a commit in REV..HEAD does not follow Conventional Commits: the changelog is generated from commit subjects, and a malformed subject drops the change from it.
|
Command check-commits fails when a commit in REV..HEAD does not follow Conventional Commits: the changelog is generated from commit subjects, and a malformed subject drops the change from it. |
|
check-mutants
command
Command check-mutants compares the mutants that survived a run of gremlins with a list of accepted ones, so that a new surviving mutant fails the run and an accepted one that a test now kills is dropped from the list.
|
Command check-mutants compares the mutants that survived a run of gremlins with a list of accepted ones, so that a new surviving mutant fails the run and an accepted one that a test now kills is dropped from the list. |
|
check-refs
command
Command check-refs fails when commit messages, code comments or documentation changed since a base revision refer to plan stages or to review and decision IDs.
|
Command check-refs fails when commit messages, code comments or documentation changed since a base revision refer to plan stages or to review and decision IDs. |
|
check-release
command
Command check-release fails unless the CI of a commit passed: a release is built from a tag, and the tag must point at a commit whose push run of the CI workflow on the development branch finished with every required job successful.
|
Command check-release fails unless the CI of a commit passed: a release is built from a tag, and the tag must point at a commit whose push run of the CI workflow on the development branch finished with every required job successful. |
Click to show internal directories.
Click to hide internal directories.