Add Wildberries product fetching and rate limiting functionality

This commit is contained in:
2025-07-04 13:30:50 +03:00
parent b48421e653
commit dc097c6fc8
67 changed files with 81355 additions and 110 deletions

23
internal/config/redis.go Normal file
View File

@@ -0,0 +1,23 @@
package config
import "os"
type RedisConfig struct {
Host string
Port string
Password string
Addr string
}
func LoadRedisConfig() *RedisConfig {
host := os.Getenv("REDIS_HOST")
port := os.Getenv("REDIS_PORT")
password := os.Getenv("REDIS_PASSWORD")
addr := os.Getenv("REDIS_ADDR")
return &RedisConfig{
Host: host,
Port: port,
Password: password,
Addr: addr,
}
}