Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefaultJSON = []byte(`
{
"APPLICATION_NAME": "in-environment",
"APPLICATION_ENVIRONMENT": "in-environment",
"PRETTY_LOG": false,
"LOG_LEVEL": "info",
"PORT": 50051,
"REST_PORT": 50052,
"OAUTH2_PORT": 50053,
"CUSTOM_STRING": "some default value",
"SOME_SECRET": "password",
"GRPC_GATEWAY_ENABLED": true,
"JWT_VALIDATORS": {},
"CONFIG_FILES": {
"CLIENT_PATH": "./config/clients.json"
},
"DD_PROFILER_CONFIG": {
"ENABLED": false,
"SERVICE_NAME": "in-environment",
"APPLICATION_ENVIRONMENT": "in-environment",
"VERSION": "1.0.0"
}
}
`)
ConfigDefaultJSON default json
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfigFiles ConfigFiles `json:"configFiles" mapstructure:"CONFIG_FILES"` fluffycore_contracts_config.CoreConfig `mapstructure:",squash"` CustomString string `json:"CUSTOM_STRING" mapstructure:"CUSTOM_STRING"` SomeSecret string `json:"SOME_SECRET" mapstructure:"SOME_SECRET" redact:"true"` OAuth2Port int `json:"oauth2Port" mapstructure:"OAUTH2_PORT"` JWTValidators JWTValidators `json:"jwtValidators" mapstructure:"JWT_VALIDATORS"` DDProfilerConfig *fluffycore_contracts_ddprofiler.Config `json:"ddProfilerConfig" mapstructure:"DD_PROFILER_CONFIG"` }
type ConfigFiles ¶
type ConfigFiles struct {
ClientPath string `json:"clientPath" mapstructure:"CLIENT_PATH"`
}
type JWTValidators ¶
Click to show internal directories.
Click to hide internal directories.