image-storage/config/config.go

22 lines
319 B
Go
Raw Normal View History

2025-10-20 18:23:53 +03:00
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", ""),
},
}
}