Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetMongoDatabase() string
- func (c *Config) GetMongoHost() string
- func (c *Config) GetMongoLogin() string
- func (c *Config) GetMongoMigrationsCollection() string
- func (c *Config) GetMongoPassword() string
- func (c *Config) GetMongoPort() string
- func (c *Config) IsMongoMigrationsEnabled() bool
- type Configurator
- type Mongo
Constants ¶
View Source
const DriverName = "mongodb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MongoMigrationsEnabled bool `envconfig:"MONGO_MIGRATIONS_ENABLED" default:"false"` MongoHost string `envconfig:"MONGO_HOST"` MongoPort string `envconfig:"MONGO_PORT"` MongoLogin string `envconfig:"MONGO_LOGIN"` MongoPassword string `envconfig:"MONGO_PASSWORD"` MongoDatabase string `envconfig:"MONGO_DATABASE"` MongoMigrationsCollection string `envconfig:"MONGO_MIGRATIONS_COLLECTION" default:"migrationVersions"` }
func (*Config) GetMongoDatabase ¶
func (*Config) GetMongoHost ¶
func (*Config) GetMongoLogin ¶
func (*Config) GetMongoMigrationsCollection ¶
func (*Config) GetMongoPassword ¶
func (*Config) GetMongoPort ¶
func (*Config) IsMongoMigrationsEnabled ¶
type Configurator ¶
Click to show internal directories.
Click to hide internal directories.