Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶ added in v0.4.0
type Factory func() Interface
Factory is a function that returns a new downloader.
type Interface ¶
type Interface interface { // DownloadContext downloads the resource as specified in url, and it accepts // a context parameter so that it can handle timeouts correctly. DownloadContext(ctx context.Context, url string, header map[string][]string, name string) (string, error) }
Interface specifies on how an plugin can download a file.
type StreamFactory ¶ added in v1.0.1
type StreamFactory func() Stream
Click to show internal directories.
Click to hide internal directories.