block-accounting/backend/internal/pkg/config/config.go

41 lines
582 B
Go
Raw Normal View History

2024-05-24 17:44:24 +00:00
package config
type Config struct {
2024-05-24 22:45:56 +00:00
Common CommonConfig
Rest RestConfig
DB DBConfig
ChainAPI ChainAPIConfig
2024-05-24 17:44:24 +00:00
}
type CommonConfig struct {
LogLevel string
LogLocal bool
LogFile string
LogAddSource bool
JWTSecret []byte
}
type RestConfig struct {
Address string
TLS bool
}
type DBConfig struct {
// persistent database config
Host string
EnableSSL bool
Database string
User string
Secret string
// cache config
CacheHost string
CacheUser string
CacheSecret string
}
2024-05-24 22:45:56 +00:00
type ChainAPIConfig struct {
Host string
2024-05-24 17:44:24 +00:00
}