Documentation ¶
Index ¶
Constants ¶
View Source
const Scheme = "join"
Scheme is the identifying part of this service's configuration URL
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { APIKey string `url:"pass"` Devices []string `key:"devices" desc:"Comma separated list of device IDs"` Title string `key:"title" optional:"" desc:"If set creates a notification"` Icon string `key:"icon" optional:"" desc:"Icon URL"` }
Config for the Pushover notification service service
func (*Config) Enums ¶
func (config *Config) Enums() map[string]types.EnumFormatter
Enums returns the fields that should use a corresponding EnumFormatter to Print/Parse their values
type ErrorMessage ¶
type ErrorMessage string
ErrorMessage for error events within the pushover service
const ( // APIKeyMissing should be used when a config URL is missing a token APIKeyMissing ErrorMessage = "API key missing from config URL" // DevicesMissing should be used when a config URL is missing devices DevicesMissing ErrorMessage = "devices missing from config URL" )
type Service ¶
Service providing the notification service Pushover
func (*Service) Initialize ¶
Initialize loads ServiceConfig from configURL and sets logger for this Service
Click to show internal directories.
Click to hide internal directories.