mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-27 01:08:50 +00:00
349917e7e4
Configuration file not required anymore DIUN_DB env var renamed DIUN_DB_PATH Only accept duration as timeout value (10 becomes 10s) Add getting started doc Enhanced documentation Add note about test notifications (#79) Improve configuration management Fix telegram init All fields in configuration now camelCased Improve configuration validation Update doc Update FAQ Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
18 lines
545 B
Go
18 lines
545 B
Go
package model
|
|
|
|
// NotifScript holds script notification configuration details
|
|
type NotifScript struct {
|
|
Cmd string `yaml:"cmd,omitempty" json:"cmd,omitempty" validate:"required"`
|
|
Args []string `yaml:"args,omitempty" json:"args,omitempty" validate:"omitempty"`
|
|
Dir string `yaml:"dir,omitempty" json:"dir,omitempty" validate:"omitempty,dir"`
|
|
}
|
|
|
|
// GetDefaults gets the default values
|
|
func (s *NotifScript) GetDefaults() *NotifScript {
|
|
return nil
|
|
}
|
|
|
|
// SetDefaults sets the default values
|
|
func (s *NotifScript) SetDefaults() {
|
|
// noop
|
|
}
|