godm

package module
v0.0.0-...-a056817 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Unlicense Imports: 16 Imported by: 0

README

Godm

This is a file downloader in Go. Like age old Internet Download Manager it will use a connection pool, split the file and download each chunk seperately.

Slight implementation differences:-

  • Ranged fetch. It will download the file in multiple parts and then merge them together into a single file.
  • Non resumable. It's still a work in progress. Resumable downloads will be added in the future.
  • CLI. This is purely CLI app. No GUI as of yet.
  • Using golang context is still a work in progress.
  • If a chunk fails to download, it will retry downloading that chunk again.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLog

func ClearLog() error

func DefaultLogPath

func DefaultLogPath() string

func DownloadFile

func DownloadFile(filePath string, url string, config *DownloadConfig) error

func ViewLog

func ViewLog() error

Types

type Chunk

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

type DownloadConfig

type DownloadConfig struct {
	DisplayDownloadBar bool
	Compress           bool
}

type HeaderInfo

type HeaderInfo struct {
	IsAcceptRanges bool
	Length         int
	ETag           string
	Encoding       string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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