mongoconfig

package
v0.0.0-...-ed984bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL