mirror of
https://github.com/emo2007/block-accounting.git
synced 2024-11-14 22:26:27 +00:00
41 lines
582 B
Go
41 lines
582 B
Go
package config
|
|
|
|
type Config struct {
|
|
Common CommonConfig
|
|
Rest RestConfig
|
|
DB DBConfig
|
|
ChainAPI ChainAPIConfig
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
type ChainAPIConfig struct {
|
|
Host string
|
|
}
|