working commit

This commit is contained in:
2026-01-28 13:06:04 +02:00
parent 6db319088e
commit d647854e98
13 changed files with 293 additions and 45 deletions
+8
View File
@@ -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
}