Codevault initial commit
This commit is contained in:
14
internal/config/database.go
Normal file
14
internal/config/database.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
import "fmt"
|
||||
|
||||
type DatabaseConfig struct {
|
||||
Path string `yaml:"path"`
|
||||
}
|
||||
|
||||
func (dc *DatabaseConfig) Validate() error {
|
||||
if dc.Path == "" {
|
||||
return fmt.Errorf("path is missing")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user