Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMongoConfigProvider ¶
func CreateMongoConfigProvider(c *Config) config.ProviderFunc
Types ¶
type Config ¶
type Config struct { // URI to connect with MongoDB. // Defaults to "" which means connecting to localhost. URI string // Database from which to read the configuration, defaults to "config" Database string // Collection from which to read the configuration, defaults to "config" Collection string // Environment (key) in the configuration collection, defaults to "production" Environment string }
Configuration to setup a MongoConfigProvider
Click to show internal directories.
Click to hide internal directories.