Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader interface {
Get(ctx context.Context, url string, header *http.Header) (*WebAsset, *http.Response, error)
}
Downloader is a service used to download assets.
func NewDefaultDownloader ¶
func NewDefaultDownloader(downloadCache cache.Cache) Downloader
NewDefaultDownloader create new downloader with defaults
func NewInternalDownloader ¶
func NewInternalDownloader(client *http.Client, downloadCache cache.Cache, maxConcurrentDownload int64) Downloader
NewInternalDownloader create new downloader instance
type InternalDownloader ¶
type InternalDownloader struct {
// contains filtered or unexported fields
}
InternalDownloader interface
Click to show internal directories.
Click to hide internal directories.