Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSourceUrls = errors.New("source URLs required") ErrSourcesFileMismatch = errors.New("file metadata from source URLs are not matching") ErrETagMismatch = errors.New("ETag mismatch") ErrUnknownContentLength = errors.New("unknown content length") ErrPartialRequestUnsupported = errors.New("partial request not supported") ErrFailedChunkDownloadAllSources = errors.New("failed to download chunk after attempting from all sources") )
Functions ¶
Types ¶
type ETagCalculator ¶
ETagCalculator represents a function that calculates the ETag of a file.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the service layer that contains operations for downloading.
func NewService ¶
func NewService(opts Options, calculateETag ETagCalculator) *Service
Click to show internal directories.
Click to hide internal directories.