Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Maintenance bool `split_words:"true" default:"false"`
BindAddr string `split_words:"true" default:":4437"`
Mode string `split_words:"true" default:"release"`
LogLevel logger.LevelDecoder `split_words:"true" default:"info"`
ConsoleLog bool `split_words:"true" default:"false"`
AllowOrigins []string `split_words:"true" default:"http://localhost,http://localhost:3000,http://localhost:3003"`
CookieDomain string `split_words:"true"`
TestNet DirectoryConfig
MainNet DirectoryConfig
Database DatabaseConfig
// contains filtered or unexported fields
}
Config uses envconfig to load the required settings from the environment, parse and validate them in preparation for running the GDS BFF API service.
func (Config) GetLogLevel ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
URL string `split_words:"true" required:"true"`
ReindexOnBoot bool `split_words:"true" default:"false"`
Insecure bool `split_words:"true" default:"false"`
CertPath string `split_words:"true"`
PoolPath string `split_words:"true"`
}
func (DatabaseConfig) Validate ¶
func (c DatabaseConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.