Versions in this module Expand all Collapse all v1 v1.6.1 Dec 6, 2020 Changes in this version + func NewRatioSPoofState(input InputArgs, torrentClient TorrentClient, httpclient HttpClient) (*ratioSPoofState, error) + type HttpClient interface + Do func(req *http.Request) (*http.Response, error) + type InputArgs struct + Debug bool + DownloadSpeed string + InitialDownloaded string + InitialUploaded string + Port int + TorrentPath string + UploadSpeed string + type TorrentClient interface + Headers func() map[string]string + Key func() string + Name func() string + NextAmountReport func(DownloadCandidateNextAmount, UploadCandidateNextAmount, ... int) (downloaded, uploaded, left int) + PeerID func() string + Query func() string