partialdownload

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Index int64
	Files int64
	Size  int64
}

type Summary added in v0.1.10

type Summary struct {
	InfoHash           string
	ChunkSize          int64
	TotalSize          int64
	TotalFiles         int64
	SkippedSize        int64
	SkippedFiles       int64
	DownloadChunkIndex int64
	Chunks             []*Chunk
}

func NewSummary added in v0.1.10

func NewSummary(infoHash string, chunkSize int64) *Summary

func (*Summary) PrintAll added in v0.1.10

func (summary *Summary) PrintAll(output io.Writer)

func (*Summary) PrintSelf added in v0.1.10

func (summary *Summary) PrintSelf(output io.Writer)

Jump to

Keyboard shortcuts

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