initial
This commit is contained in:
commit
a72002540d
9 changed files with 133 additions and 0 deletions
21
config/config.go
Normal file
21
config/config.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package config
|
||||
|
||||
type Config struct {
|
||||
App AppConfig
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
GrpcHost string
|
||||
GrpcPort string
|
||||
LogLevel string
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
return &Config{
|
||||
App: AppConfig{
|
||||
GrpcHost: getEnv("GRPC_HOST", ""),
|
||||
GrpcPort: getEnv("GRPC_PORT", ""),
|
||||
LogLevel: getEnv("LOG_LEVEL", ""),
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue