0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-12 11:38:11 +00:00
crazy-max_diun/internal/model/provider_file.go
CrazyMax 349917e7e4
Configuration transposed into environment variables (#82)
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>
2020-06-07 19:58:49 +00:00

17 lines
463 B
Go

package model
// PrdFile holds file provider configuration
type PrdFile struct {
Filename string `yaml:"filename,omitempty" json:"filename,omitempty" validate:"omitempty,file"`
Directory string `yaml:"directory,omitempty" json:"directory,omitempty" validate:"omitempty,dir"`
}
// GetDefaults gets the default values
func (s *PrdFile) GetDefaults() *PrdFile {
return nil
}
// SetDefaults sets the default values
func (s *PrdFile) SetDefaults() {
// noop
}