Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string `envconfig:"PORT" default:"3000"` DBPath string `envconfig:"DB_PATH" default:"urls.db"` BaseURL string `envconfig:"BASE_URL" default:"http://localhost:3000"` RateLimit int `envconfig:"RATE_LIMIT" default:"100"` RateLimitWindow time.Duration `envconfig:"RATE_LIMIT_WINDOW" default:"1m"` CleanupInterval time.Duration `envconfig:"CLEANUP_INTERVAL" default:"24h"` MaxURLAge time.Duration `envconfig:"MAX_URL_AGE" default:"720h"` // 30 days }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.