Documentation ¶
Index ¶
- Variables
- func AddDownload(info *NewDownloadInfo) (int64, error)
- func GetDownload(id int64) *download.Download
- func GetDownloaded(id int64) int64
- func GetGoPhastVersion() string
- func GetName(id int64) string
- func GetSize(id int64) int64
- func GetVerboseDownloaded(id int64) []byte
- func Initialize(logLevel int) error
- func PauseDownload(id int64) error
- func RemoveDownload(id int64) error
- func ResumeDownload(id int64) error
- func SetAutoSave(seconds int64)
- func SetDownloadDir(path string)
- func SetForce(force bool)
- func SetMaxConnections(maxconns int64)
- func SetMaxRetries(maxretries int)
- func SetMinSplitSize(minsplitsize int64)
- func SetPreallocate(preallocate bool)
- func SetResume(resume bool)
- func SetRetryDelay(seconds int64)
- func SetUserAgentExtra(extra string)
- func Shutdown() error
- func WaitAll()
- func WaitDownload(id int64) (int, error)
- type DownloadInfo
- type DownloadResult
- type ManagedDownload
- type Metadata
- type NewDownloadInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version string
)
Functions ¶
func AddDownload ¶
func AddDownload(info *NewDownloadInfo) (int64, error)
func GetDownload ¶ added in v0.1.4
func GetDownloaded ¶
func GetGoPhastVersion ¶
func GetGoPhastVersion() string
func GetVerboseDownloaded ¶ added in v0.1.6
func Initialize ¶
func PauseDownload ¶ added in v0.1.4
func RemoveDownload ¶
func ResumeDownload ¶ added in v0.1.4
func SetAutoSave ¶ added in v0.1.4
func SetAutoSave(seconds int64)
func SetDownloadDir ¶
func SetDownloadDir(path string)
func SetMaxConnections ¶
func SetMaxConnections(maxconns int64)
func SetMaxRetries ¶ added in v0.1.4
func SetMaxRetries(maxretries int)
func SetMinSplitSize ¶
func SetMinSplitSize(minsplitsize int64)
func SetPreallocate ¶ added in v0.1.4
func SetPreallocate(preallocate bool)
func SetRetryDelay ¶ added in v0.1.4
func SetRetryDelay(seconds int64)
func SetUserAgentExtra ¶
func SetUserAgentExtra(extra string)
func WaitDownload ¶
Types ¶
type DownloadInfo ¶
type DownloadResult ¶ added in v0.1.3
type ManagedDownload ¶ added in v0.1.3
type ManagedDownload struct {
// contains filtered or unexported fields
}
type Metadata ¶ added in v0.1.5
func FetchMetadata ¶ added in v0.1.5
func FetchMetadata(info *NewDownloadInfo) (*Metadata, error)
type NewDownloadInfo ¶
Click to show internal directories.
Click to hide internal directories.