0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-03-16 20:33:30 +00:00
crazy-max_diun/internal/model/db.go

19 lines
372 B
Go
Raw Normal View History

2019-06-04 20:11:54 +00:00
package model
// Db holds data necessary for database configuration
type Db struct {
Path string `yaml:"path,omitempty" json:"path,omitempty" validate:"required"`
}
// GetDefaults gets the default values
func (s *Db) GetDefaults() *Db {
n := &Db{}
n.SetDefaults()
return n
}
// SetDefaults sets the default values
func (s *Db) SetDefaults() {
s.Path = "diun.db"
2019-06-04 20:11:54 +00:00
}