Clean up torrent creation methods on Client
- Ngôn ngữ chính
- Go
- Star
- 6.1k
- Fork
- 690
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
Per https://github.com/anacrolix/torrent/issues/243#issue-310328823:
> remove torrent creation methods from the client. there are just want too many of them. poorly documented, and its unclear which one should be used and when.
> ```
> func (cl *Client) AddMagnet(uri string) (T *Torrent, err error) {}
> func (cl *Client) AddTorrentFromFile(filename string) (T *Torrent, err error) {}
> func (cl *Client) AddTorrent(mi *metainfo.MetaInfo) (T *Torrent, err error) {}
> func (cl *Client) AddTorrentInfoHash(infoHash metainfo.Hash) (t *Torrent, new bool) {}
> func (cl *Client) AddTorrentInfoHashWithStorage(infoHash metainfo.Hash, specStorage storage.ClientImpl) (t *Torrent, new bool) {}
> func (cl *Client) AddTorrentSpec(spec *TorrentSpec) (t *Torrent, new bool, err error) {}
> ```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.