Internal runtime facade used by ElixirTorrent.
Use ElixirTorrent as the preferred public API.
Summary
Functions
Starts a new torrent download from a local .torrent path.
Stops a running torrent and removes it from the active list.
Returns a default set of runtime stats for a torrent process.
Returns selected runtime fields for a torrent process as a map keyed by field.
Functions
@spec download(Path.t()) :: DynamicSupervisor.on_start_child()
Starts a new torrent download from a local .torrent path.
Returns {:ok, pid} on success.
Stops a running torrent and removes it from the active list.
When :delete_data is true, downloaded files are deleted from disk after
the torrent process has been stopped.
Returns a default set of runtime stats for a torrent process.
The default fields are:
[:name, :speed, :downloaded, :bytes_size].
Returns selected runtime fields for a torrent process as a map keyed by field.
Example:
Torrents.stats(pid, [:name, :speed, :downloaded, :bytes_size])