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

View File

@@ -0,0 +1,23 @@
package config
import "os"
type DatabaseConfig struct {
Host string
Port string
Login string
Password string
Database string
URL string
}
func LoadDatabaseConfig() *DatabaseConfig {
return &DatabaseConfig{
Host: os.Getenv("POSTGRES_HOST"),
Port: os.Getenv("POSTGRES_PORT"),
Login: os.Getenv("POSTGRES_LOGIN"),
Password: os.Getenv("POSTGRES_PASSWORD"),
Database: os.Getenv("POSTGRES_DATABASE"),
URL: os.Getenv("POSTGRES_URL"),
}
}