21 lines
319 B
Go
21 lines
319 B
Go
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", ""),
|
|
},
|
|
}
|
|
}
|