Documentation ¶
Index ¶
- type Event
- type EventTemplateConfig
- type Hub
- type Messenger
- func NewConfigurableFromConfig(ctx context.Context, other map[string]interface{}) (Messenger, error)
- func NewFromConfig(ctx context.Context, typ string, other map[string]interface{}) (Messenger, error)
- func NewNtfyFromConfig(other map[string]interface{}) (Messenger, error)
- func NewPushOverFromConfig(other map[string]interface{}) (Messenger, error)
- func NewShoutrrrFromConfig(other map[string]interface{}) (Messenger, error)
- func NewTelegramFromConfig(ctx context.Context, other map[string]interface{}) (Messenger, error)
- type Ntfy
- type Push
- type PushOver
- type Shoutrrr
- type Telegram
- type Vehicles
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 NewConfigurableFromConfig ¶
func NewConfigurableFromConfig(ctx context.Context, other map[string]interface{}) (Messenger, error)
NewConfigurableFromConfig creates Messenger from config
func NewFromConfig ¶
func NewFromConfig(ctx context.Context, typ string, other map[string]interface{}) (Messenger, error)
NewFromConfig creates messenger from configuration
func NewNtfyFromConfig ¶
NewNtfyFromConfig creates new Ntfy messenger
func NewPushOverFromConfig ¶
NewPushOverFromConfig creates new pushover messenger
func NewShoutrrrFromConfig ¶
NewShoutrrrFromConfig creates new Shoutrrr messenger
type Ntfy ¶
type Ntfy struct {
// contains filtered or unexported fields
}
Ntfy implements the ntfy messaging aggregator
type Push ¶
type Push struct {
// contains filtered or unexported fields
}
Push is a configurable Messenger implementation
func NewConfigurable ¶
NewConfigurable creates a new Messenger
type PushOver ¶
type PushOver struct {
// contains filtered or unexported fields
}
PushOver implements the pushover messenger
type Shoutrrr ¶
type Shoutrrr struct {
// contains filtered or unexported fields
}
Shoutrrr implements the shoutrrr messaging aggregator