Documentation ¶
Overview ¶
Package notifications provides helpers to send notifications
Package notifications provides helpers to send notifications
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendNotification ¶
Send a notification using all configured notifiers
Types ¶
type AllNotifiers ¶
type AllNotifiers struct { Telegram Telegram // Each notifier type embeds a Notifier struct // contains filtered or unexported fields }
Structure listing all notifiers
type Flag ¶
type Flag struct { Long string // Long name of the flag, required Short string // Short name Help string // Help message, required ValueType string // Type of the value: "string", "int" or "bool" are supported Value interface{} // Interface to hold the flag value }
Structure describing a flag to pass notifiers parameters in the CLI
type Notifier ¶
type Notifier struct { Name string // Notifier name Flags map[string]*Flag // Slice of all flags used to pass parameters }
Structure describing a notifier
func (Notifier) IsConfigured ¶
Send a notification using all configured notifiers
Click to show internal directories.
Click to hide internal directories.