Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateV1DownloadHandler ¶
func CreateV1DownloadHandler(fetchMetadata files.MetadataFetcher, downloadFileFromBucket files.FileDownloader, cfg *config.Config) http.HandlerFunc
CreateV1DownloadHandler handles generic download file requests.
func Limiter ¶ added in v1.16.1
Limiter is a middleware that makes sure that no more than n handlers are being executed in parallel.
If more traffic comes in while all n handlers are running, the Limiter drops the extra requests by returning HTTP status code of 429 (Too Many Requests) and never executing the inner handler.
If n is 0, no concurrency limits are applied at all.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.