Documentation
¶
Overview ¶
Package notify delivers short operational messages (SSH login alerts, audit denials, task failures) to one or more user-configured channels. It is deliberately dependency-free: every channel is a plain HTTPS POST built on the standard library, so the server keeps its zero-dependency footprint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bark ¶
type Bark struct {
BaseURL string // e.g. https://api.day.app
Key string
Client *http.Client
}
Bark posts to a Bark server (iOS push). URL form: <base>/<key>/<title>/<body>.
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher fans a message out to every configured channel, isolating failures so one broken channel does not suppress the others.
func NewDispatcher ¶
func NewDispatcher(channels ...Channel) *Dispatcher
Click to show internal directories.
Click to hide internal directories.