Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timeout")
ErrTimeout is a timeout error
Functions ¶
This section is empty.
Types ¶
type DownloadCallback ¶
type Downloader ¶
Downloader handles concurrent chunk downloads
func NewDownloader ¶
func NewDownloader(threads int, client *drive.Client) (*Downloader, error)
NewDownloader creates a new download manager
func (*Downloader) Download ¶
func (d *Downloader) Download(req *Request, callback DownloadCallback)
Download starts a new download request
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item represents a chunk in RAM
type Manager ¶
Manager manages chunks on disk
type QueueEntry ¶
type QueueEntry struct {
// contains filtered or unexported fields
}
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request represents a chunk request
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a thread safe list/stack implementation
Click to show internal directories.
Click to hide internal directories.