package
Version:
v0.0.0-...-03830f7
Opens a new window with list of versions in this module.
Published: Jan 28, 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
¶
GetLocalConfig gets viper
LoadConfig for service based on env
Local: load a local yaml
Dev or Prod: env variables
type API struct {
SvcURL string `json:"svcUrl"`
RedisURL string `json:"redisUrl"`
}
API is what api.nycab need
type Cli struct {
APIHost string `json:"apiHost"`
APIPort string `json:"apiPort"`
}
Cli is waht cli.nycab need
type Service struct {
DBHost string `json:"dbHost"`
DBPort string `json:"dbPort"`
UserName string `json:"userName"`
Password string `json:"password"`
}
Service is what service.nycab need
Source Files
¶
Click to show internal directories.
Click to hide internal directories.