package
1.0.2
Repository: https://github.com/fichain/go-file.git
Documentation: pkg.go.dev

# Functions

DisableLogging disables all log messages printed to console.
NewSession creates a new Session for downloading and seeding torrents.

# Constants

Allocating indicates that the torrent is in the process of creating/opening files on the disk.
Downloading the torrent's files from peers.
DownloadingMetadata indicates that the torrent is in the process of downloadin metadata.
Seeding the torrent.
Stopped indicates that the torrent is not running.
Stopping the torrent.
Verifying indicates that the torrent has already some files on disk and it is checking the validity of pieces by comparing hashes.

# Variables

DefaultConfig for Session.

# Structs

AddTorrentOptions contains options for adding a new torrent.
AnnounceError is the error returned from announce response to a tracker.
Config for Session.
InputError is returned from Session.AddTorrent and Session.AddURI methods when there is problem with the input.
Session contains torrents, DHT node, caches and other data structures shared by multiple torrents.
Stats contains statistics about Torrent.

# Type aliases

Status of a Torrent.