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"` ConnectionString string `envconfig:"CONNECTION_STRING" json:"-"` DefaultMaxResults int `envconfig:"DEFAULT_MAX_RESULTS"` DownloadData bool `envconfig:"DOWNLOAD_DATA"` DownloadTimeout time.Duration `envconfig:"DOWNLOAD_TIMEOUT"` GSURL string `envconfig:"GOOGLE_SHEET_URL" json:"-"` GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"` MongoConfig MongoConfig }
Configuration structure which hold information for configuring the import API
func Get ¶
func Get() (*Configuration, error)
Get the application and returns the configuration structure
type MongoConfig ¶
type MongoConfig struct { BindAddr string `envconfig:"MONGODB_BIND_ADDR" json:"-"` Collection string `envconfig:"MONGODB_COLLECTION"` Database string `envconfig:"MONGODB_DATABASE"` }
MongoConfig contains the config required to connect to MongoDB.
Click to show internal directories.
Click to hide internal directories.