package
Version:
v0.0.0-...-3e9bda6
Opens a new window with list of versions in this module.
Published: Mar 21, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
PoetrydbBaseUrl string `envconfig:"POETRYDB_BASE_URL" required:"true"`
PoetrydbHttpTimeout int `envconfig:"POETRYDB_HTTP_TIMEOUT" required:"true"`
}
Config holds configuration data.
ReadEnv reads envionment variables into Config struct.
type EnvConfig interface {
Process(prefix string, spec interface{}) error
}
EnvConfig is an interface that defines
the functions we use from envconfig package.
It enables mocking this dependency in unit testing.
type GoDotEnv interface {
Load(filenames ...string) (err error)
}
GoDotEnv is an interface that defines
the functions we use from godotenv package.
It enables mocking this dependency in unit testing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.