downloader

package
v0.0.0-...-9fbec0b Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_DOWNLOAD_PATH = "/home/mohammedaouamri/Download/"

Variables

This section is empty.

Functions

func Cfgjson

func Cfgjson(me FILE) string

func Unfiniched

func Unfiniched(me FILE) string

Types

type FILE

type FILE struct {
	Id      uuid.UUID `json:"ID" binding:"required"`
	Output  string    `json:"output" binding:"required"`
	Url     string    `json:"url" binding:"required"`
	Packets []Packet
	IsDone  bool
	IsPause bool
}

func (*FILE) Constructor

func (me *FILE) Constructor(url_p string, name_p string, path_p *string) error

Constructor initializes the FILE struct

func (*FILE) Download

func (me *FILE) Download(numThreads int) error

func (*FILE) MkeConfig

func (me *FILE) MkeConfig(numThreads int) error

func (*FILE) ReadFromMetaData

func (me *FILE) ReadFromMetaData(path string) error

type Packet

type Packet struct {
	Start int  `json:"start"`
	End   int  `json:"end"`
	Done  bool `json:"done"`
}

Jump to

Keyboard shortcuts

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