init layout

This commit is contained in:
2023-08-07 21:30:30 +03:00
committed by Евстигнеев Денис Сергеевич
parent 5aec0a0895
commit fb0ad62f0e
21 changed files with 3930 additions and 50 deletions

24
config/config.go Normal file
View File

@@ -0,0 +1,24 @@
package config
import service "go.unistack.org/cms-service"
type App struct {
Address string `flag:"name=pkgdash.address,desc='listen address',default='127.0.0.1:8080'"`
}
type Config struct {
App *App
Storage *service.ConfigStorage
Logger *service.ConfigLogger
Service *service.ConfigService
Core *service.ConfigCore
}
func NewConfig() *Config {
return &Config{
Service: &service.ConfigService{
Name: ServiceName,
Version: ServiceVersion,
},
}
}

6
config/variables.go Normal file
View File

@@ -0,0 +1,6 @@
package config
var (
ServiceName = "pkgdash"
ServiceVersion = "0.0.1"
)