Documentation ¶
Index ¶
Constants ¶
View Source
const Scheme = "pushover"
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 { Token string `url:"pass" desc:"API Token/Key"` User string `url:"host" desc:"User Key"` Devices []string `key:"devices" optional:""` Priority int8 `key:"priority" default:"0"` Title string `key:"title" optional:""` }
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 ( // UserMissing should be used when a config URL is missing a user UserMissing ErrorMessage = "user missing from config URL" // TokenMissing should be used when a config URL is missing a token TokenMissing ErrorMessage = "token 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.