proto + grpc handler

This commit is contained in:
nquidox 2025-10-20 22:21:55 +03:00
parent a72002540d
commit 37041fc8fe
15 changed files with 942 additions and 14 deletions

View file

@ -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", ""),
},
}