resumer

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package resumer contains an interface that is used by torrent package for resuming an existing download.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resumer

type Resumer interface {
	WriteInfo([]byte) error
	WriteBitfield([]byte) error
}

Resumer provides operations to save and load resume info for a Torrent.

type Stats

type Stats struct {
	BytesDownloaded int64
	BytesUploaded   int64
	BytesWasted     int64
	SeededFor       int64 // time.Duration
}

Directories

Path Synopsis
Package boltdbresumer provides a Resumer implementation that uses a Bolt database file as storage.
Package boltdbresumer provides a Resumer implementation that uses a Bolt database file as storage.

Jump to

Keyboard shortcuts

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