proto + grpc handler
This commit is contained in:
parent
a72002540d
commit
37041fc8fe
15 changed files with 942 additions and 14 deletions
|
|
@ -5,16 +5,20 @@ type Config struct {
|
|||
}
|
||||
|
||||
type AppConfig struct {
|
||||
GrpcHost string
|
||||
Host string
|
||||
HttpPort string
|
||||
GrpcPort string
|
||||
Domain string
|
||||
LogLevel string
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
return &Config{
|
||||
App: AppConfig{
|
||||
GrpcHost: getEnv("GRPC_HOST", ""),
|
||||
Host: getEnv("HOST", ""),
|
||||
HttpPort: getEnv("HTTP_PORT", ""),
|
||||
GrpcPort: getEnv("GRPC_PORT", ""),
|
||||
Domain: getEnv("DOMAIN", ""),
|
||||
LogLevel: getEnv("LOG_LEVEL", ""),
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue