Merge branch 'feature/competition'

* feature/competition:
  add competition service to compose
  remove generated shit from competitions
  lint competition service
  use auth service for validating user in competitions service
  use auth service for validating user in competitions service
  add redis cache to competitions
  rewrite competition service: remove http related things
  rewrite competition service: remove http related things
  fix proto files
  fix issues
  add competition service (it`s broken, I will fix it later)
This commit is contained in:
ITQ committed 2025-12-17 15:40:46 +03:00
commit 6cfa8d0e69
14 files changed
+816 -8

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ type Config struct {
DBName string
RedisURI string
AuthGRPCAddr string
CacheEnabled bool
}
func Load() (*Config, error) {
@@ -41,6 +42,7 @@ func Load() (*Config, error) {
DBName: getEnv("POSTGRES_DATABASE", "postgres"),
RedisURI: getEnv("REDIS_URI", "redis://localhost:6379"),
AuthGRPCAddr: getEnv("AUTH_GRPC_ADDR", "localhost:50052"),
CacheEnabled: mustGetBool("CACHE_ENABLED", true),
}, nil
}