Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Scheme is the identifying part of this service's configuration URL
Scheme = "ifttt"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { standard.EnumlessConfig WebHookID string `required:"true"` Events []string `key:"events" required:"true"` Value1 string `key:"value1"` Value2 string `key:"value2"` Value3 string `key:"value3"` UseMessageAsValue uint8 `key:"messagevalue" desc:"sets the corresponding value field to the notification message" default:"2"` UseTitleAsValue uint8 `key:"titlevalue" desc:"sets the corresponding value field to the notification title" default:"0"` Title string `key:"title" default:"" desc:"notification title, optionally set by the sender"` }
Config is the configuration needed to send IFTTT notifications
type Service ¶
Service sends notifications to a IFTTT webhook
func (*Service) Initialize ¶
Initialize loads ServiceConfig from configURL and sets logger for this Service
Click to show internal directories.
Click to hide internal directories.