working commit
This commit is contained in:
@@ -3,6 +3,7 @@ package config
|
||||
type Config struct {
|
||||
Service Service `json:"service" yaml:"service"`
|
||||
Database Database `json:"database" yaml:"database"`
|
||||
Storage Storage `json:"storage" yaml:"storage"`
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
@@ -14,6 +15,10 @@ type Database struct {
|
||||
Basepath string `json:"basepath" yaml:"basepath"`
|
||||
}
|
||||
|
||||
type Storage struct {
|
||||
Basepath string `json:"basepath" yaml:"basepath"`
|
||||
}
|
||||
|
||||
func NewConfig() (*Config, error) {
|
||||
var err error
|
||||
return &Config{
|
||||
@@ -24,5 +29,8 @@ func NewConfig() (*Config, error) {
|
||||
Database: Database{
|
||||
Basepath: datadir,
|
||||
},
|
||||
Storage: Storage{
|
||||
Basepath: datadir,
|
||||
},
|
||||
}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user