Discover Packages
github.com/hbontempo-br/book-downloader-api
config
package
Version:
v0.0.0-...-9dfc967
Opens a new window with list of versions in this module.
Published: Sep 7, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BucketConfig struct {
Name string `envvar:"NAME"`
DefaultDownloadLinkTime int `envvar:"DEFAULT_DOWNLOAD_LINK_TIME" default:"60"`
}
type DBConfig struct {
Address string `envvar:"ADDRESS"`
Port int `envvar:"PORT"`
DBName string `envvar:"NAME"`
User string `envvar:"USER"`
Password string `envvar:"PASSWORD"`
}
type EnvVars struct {
DBConfig DBConfig `envvar:"DB_"`
MinioConfig MinioConfig `envvar:"MINIO_"`
BucketConfig BucketConfig `envvar:"BUCKET_"`
ServerPort int `envvar:"PORT" default:"3000"`
Environment string `envvar:"ENVIRONMENT" default:"local"`
}
type MinioConfig struct {
Endpoint string `envvar:"ENDPOINT"`
AccessKey string `envvar:"ACCESS_KEY"`
SecretKey string `envvar:"SECRET_KEY"`
SSL bool `envvar:"SSL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.