0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-03-17 12:52:40 +00:00
crazy-max_diun/internal/model/notif_pushover.go
CrazyMax dc1216c221
Add Pushover notification ()
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-01-04 21:29:48 +00:00

20 lines
828 B
Go

package model
// NotifPushover holds Pushover notification configuration details
type NotifPushover struct {
Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"`
TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"`
Recipient string `yaml:"recipient,omitempty" json:"recipient,omitempty" validate:"omitempty"`
RecipientFile string `yaml:"recipientFile,omitempty" json:"recipientFile,omitempty" validate:"omitempty,file"`
Priority int `yaml:"priority,omitempty" json:"priority,omitempty" validate:"omitempty,min=-2,max=2"`
}
// GetDefaults gets the default values
func (s *NotifPushover) GetDefaults() *NotifPushover {
return nil
}
// SetDefaults sets the default values
func (s *NotifPushover) SetDefaults() {
// noop
}