Documentation ¶
Overview ¶
This package is the embeded version of 'github.com/Sioro-Neoku/go-peerflix/'. We did some modifications on it in order to let it fit into 'Torrodle'
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Client *torrent.Client ClientConfig *torrent.ClientConfig Torrent *torrent.Torrent Source models.Source URL string HostPort int }
Client manages the torrent downloading.
func (*Client) PrintProgress ¶
func (client *Client) PrintProgress()
PrintProgress prints out the current download progress of the client for the CLI.
func (*Client) Serve ¶
func (client *Client) Serve()
Serve serves the torrent via HTTP localhost:{port}.
type SeekableContent ¶
type SeekableContent interface { io.ReadSeeker io.Closer }
SeekableContent describes an io.ReadSeeker that can be closed as well.
func NewFileReader ¶
func NewFileReader(f *torrent.File) (SeekableContent, error)
NewFileReader sets up a torrent file for streaming reading.
Click to show internal directories.
Click to hide internal directories.