Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // C Global configuration (Must Load first, otherwise the configuration will not be available) C = new(Config) )
Functions ¶
func ParseConfigByEnv ¶
func ParseConfigByEnv() error
func PrintWithJSON ¶
func PrintWithJSON()
Types ¶
type Config ¶
type Config struct {
RunMode string
PrintConfig bool
TLS TLS
OCSP OCSP
Log Log
LogRedisHook LogRedisHook
Cfssl Cfssl
Storage Storage
Ipfs Ipfs
Web3Storage Web3Storage
CrdtKv CrdtKv
}
func (*Config) IsDebugMode ¶
func (*Config) IsReleaseMode ¶
type LogGormHook ¶
type LogRedisHook ¶
type OCSP ¶
type OCSP struct {
Host string
Port int
ShutdownTimeout int
MaxContentLength int64
MaxReqLoggerLength int `default:"1024"`
MaxResLoggerLength int
}
OCSP Configuration parameters
type TLS ¶
type TLS struct {
Host string
Port int
CertFile string
KeyFile string
Cert []byte
Key []byte
ShutdownTimeout int
MaxContentLength int64
MaxReqLoggerLength int `default:"1024"`
MaxResLoggerLength int
}
TLS Configuration parameters
type Web3Storage ¶
Click to show internal directories.
Click to hide internal directories.