Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶ added in v0.0.14
type AuthConfig struct {
AuthType string `json:"type" yaml:"type"`
UserDataHeader string `json:"userDataHeader" yaml:"userDataHeader"`
JWT *JWTConfig `json:"jwt" yaml:"jwt"`
BasicAuthConfig *BasicAuthConfig `json:"basic" yaml:"basic"`
}
Auth config
type BasicAuthConfig ¶ added in v0.0.26
type BasicAuthConfig struct {
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
UsernameEnv string `json:"usernameEnvVariable" yaml:"usernameEnvVariable"`
PasswordEnv string `json:"passwordEnvVariable" yaml:"passwordEnvVariable"`
CredentialsFile string `json:"credentialsFile" yaml:"credentialsFile"`
}
type Config ¶
type Config struct {
GlobalConfig GlobalConfig `yaml:"global"`
APIConfig APIConfig `yaml:"api"`
GatewayConfig GatewayConfig `yaml:"gateway"`
LoggingConfig LoggingConfig `yaml:"logging"`
PluginConfig PluginConfig `yaml:"plugins"`
}
Config holds the complete application configuration
func LoadConfig ¶
LoadConfig loads the application configuration from a YAML file and environment variables
type GatewayConfig ¶
GatewayConfig holds the gateway server configuration
type GlobalConfig ¶
type GlobalConfig struct {
ServiceType string `yaml:"service_type"`
ServicesFile string `yaml:"services_file"`
RedisURI string `yaml:"redis_uri"`
RedisNamespace string `yaml:"redis_namespace"`
MongoURI string `yaml:"mongo_uri"`
MongoDatabaseName string `yaml:"mongo_db_name"`
MongoCollectionName string `yaml:"mongo_collection_name"`
}
GlobalConfig holds the global application configuration GlobalConfig holds the global configuration
type LoggingConfig ¶
type LoggingConfig struct {
Level string `yaml:"level"`
}
LoggingConfig holds the logging configuration
type PluginConfig ¶
PluginConfig holds the plugin configuration
Click to show internal directories.
Click to hide internal directories.