0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-03-18 05:02:53 +00:00
crazy-max_diun/internal/model/notif_pushover.go

21 lines
828 B
Go
Raw Normal View History

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
}