package grib

import (
	"net/url"
	"time"
)

type Config struct {
	Dir        string        `env:"DIR" envDefault:"/tmp/grib"`
	TTL        time.Duration `env:"TTL" envDefault:"24h"`
	CacheTTL   time.Duration `env:"CACHE_TTL" envDefault:"1h"`
	Parallel   int           `env:"PARALLEL" envDefault:"4"`
	Timeout    time.Duration `env:"TIMEOUT" envDefault:"30s"`
	DatasetURL url.URL       `env:"DATASET_URL" envDefault:"https://nomads.ncep.noaa.gov/"`
}
