Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(ctx context.Context, c *DownloadConfig, opts ...DownloadOption) error
Types ¶
type CheckConfig ¶
CheckConfig is a configuration to check download target.
type DownloadConfig ¶
type DownloadOption ¶
type DownloadOption func(c *DownloadConfig)
func WithReferer ¶
func WithReferer(referer string) DownloadOption
func WithUserAgent ¶
func WithUserAgent(ua, version string) DownloadOption
type Get ¶
Get struct
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
Range struct for range access
func (Range) BytesRange ¶
Click to show internal directories.
Click to hide internal directories.