mirror of
https://github.com/crazy-max/diun.git
synced 2025-03-18 05:02:53 +00:00
21 lines
828 B
Go
21 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
|
||
|
}
|