Documentation
¶
Index ¶
- Variables
- func CMD(cmd string, args []string) (out string, err error)
- func Check(c *model.Config) (healthy bool, err error)
- func CreateConfig()
- func EvalFunction(in string, errorWords []string) (healthy bool, err error)
- func GeneratePushover(recipientID string, title, body string, priority int) (*pushover.Recipient, *pushover.Message)
- func InitiateCron(cronString string, f func())
- func Load() (*model.Config, error)
- func LoadFromFile(f string) (*model.Config, error)
- func NewPushOverClient(token string) *pushover.Pushover
- func NotifyPushover(recipient *pushover.Recipient, message *pushover.Message) error
- func NotifyPushoverFromConfig(c *model.Config) error
- func NotifyPushoverFromSystemError(c *model.Config, errStr string) error
- func Setup(c *model.Config)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PushoverClient communicates with the Pushover API PushoverClient *pushover.Pushover )
Functions ¶
func CreateConfig ¶
func CreateConfig()
CreateConfig will generate the config.json and write the file
func GeneratePushover ¶
func InitiateCron ¶
func InitiateCron(cronString string, f func())
InitiateCron starts the cron that runs the function
func LoadFromFile ¶
LoadFromFile attempts to read and unmarshal the config
func NewPushOverClient ¶
func NotifyPushover ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.