var ( Version string )
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 struct { Download *download.Download }
type DownloadResult struct { Status int Err error }
type ManagedDownload struct {
// contains filtered or unexported fields
}
type Metadata struct { Name string Size int64 }
func FetchMetadata(info *NewDownloadInfo) (*Metadata, error)
type NewDownloadInfo struct { URL string PostData []byte }