Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.