richkago

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 9 Imported by: 0

README

richkago

GoLang Download Engine

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url, destination string, controller *Controller) (float64, int64, error)

Download main download task creator

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController() *Controller

NewController build a new controller

func (*Controller) Pause

func (c *Controller) Pause()

Pause pause a progress

func (*Controller) Progress

func (c *Controller) Progress() float64

Progress gets progress of a controller

func (*Controller) Status

func (c *Controller) Status() int

Status gets a status of a controller

func (*Controller) Unpause

func (c *Controller) Unpause()

Unpause unpause a progress

func (*Controller) UpdateProgress

func (c *Controller) UpdateProgress(size int64, chunkID string)

UpdateProgress update progress into controller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL