Documentation ¶
Index ¶
- type Event
- type EventTemplateConfig
- type Hub
- type Messenger
- func NewFromConfig(typ string, other map[string]interface{}) (v Messenger, err error)
- func NewNtfyFromConfig(other map[string]interface{}) (Messenger, error)
- func NewPushOverFromConfig(other map[string]interface{}) (Messenger, error)
- func NewScriptFromConfig(other map[string]interface{}) (Messenger, error)
- func NewShoutrrrFromConfig(other map[string]interface{}) (Messenger, error)
- func NewTelegramFromConfig(other map[string]interface{}) (Messenger, error)
- type Ntfy
- type PushOver
- type Script
- type Shoutrrr
- type Telegram
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventTemplateConfig ¶
type EventTemplateConfig struct {
Title, Msg string
}
EventTemplateConfig is the push message configuration for an event
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub subscribes to event notifications and sends them to client devices
type Messenger ¶
type Messenger interface {
Send(title, msg string)
}
Messenger implements message sending
func NewFromConfig ¶
NewFromConfig creates messenger from configuration
func NewNtfyFromConfig ¶
NewNtfyFromConfig creates new Ntfy messenger
func NewPushOverFromConfig ¶
NewPushOverFromConfig creates new pushover messenger
func NewScriptFromConfig ¶
NewScriptFromConfig creates a Script messenger. Script execution is aborted after given timeout.
func NewShoutrrrFromConfig ¶
NewShoutrrrFromConfig creates new Shoutrrr messenger
func NewTelegramFromConfig ¶
NewTelegramFromConfig creates new pushover messenger
type Ntfy ¶
type Ntfy struct {
// contains filtered or unexported fields
}
Ntfy implements the ntfy messaging aggregator
type PushOver ¶
type PushOver struct {
// contains filtered or unexported fields
}
PushOver implements the pushover messenger
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
Script implements shell script-based message service and setters