Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { BindAddr string `envconfig:"BIND_ADDR"` GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"` HealthCheckInterval time.Duration `envconfig:"HEALTHCHECK_INTERVAL"` HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"` MongoConfig MongoConfig }
Configuration structure which hold information for configuring the import API
type MongoConfig ¶
type MongoConfig struct { BindAddr string `envconfig:"MONGODB_BIND_ADDR" json:"-"` Collection string `envconfig:"MONGODB_COLLECTION"` Database string `envconfig:"MONGODB_DATABASE"` EnableMongoData bool `envconfig:"ENABLE_MONGO_DATA"` EnableMongoImport bool `envconfig:"ENABLE_MONGO_IMPORT"` }
MongoConfig contains the config required to connect to MongoDB.
Click to show internal directories.
Click to hide internal directories.