torrent

package
v0.0.0-...-7d4b7a9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package torrent is a downloader implementer for downloading torrents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is a Torrent downloader

func NewClient

func NewClient() *Client

NewClient creates a new torrent client

func (*Client) Download

func (c *Client) Download(ctx context.Context, baseDir string, progress chan downloader.ProgressUpdate, torrentURL string) error

Download downloads a torrent

func (*Client) Register

func (c *Client) Register() downloader.ClientRegister

Register is called to register this implementation for a protocol

Jump to

Keyboard shortcuts

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