Documentation ¶
Index ¶
- func CreateNativeZeroLengthFile(name string) error
- type DnsCacheResolver
- type Fetcher
- func (f *Fetcher) Close() (err error)
- func (f *Fetcher) Create(opts *base.Options) (err error)
- func (f *Fetcher) Meta() *fetcher.FetcherMeta
- func (f *Fetcher) Pause() (err error)
- func (f *Fetcher) Progress() fetcher.Progress
- func (f *Fetcher) Resolve(req *base.Request) error
- func (f *Fetcher) Setup(ctl *controller.Controller)
- func (f *Fetcher) Start() (err error)
- func (f *Fetcher) Stats() any
- func (f *Fetcher) Upload() (err error)
- func (f *Fetcher) UploadedBytes() int64
- func (f *Fetcher) Wait() (err error)
- func (f *Fetcher) WaitUpload() (err error)
- type FetcherManager
- func (fm *FetcherManager) AutoRename() bool
- func (fm *FetcherManager) Build() fetcher.Fetcher
- func (fm *FetcherManager) Close() error
- func (fm *FetcherManager) DefaultConfig() any
- func (fm *FetcherManager) Filters() []*fetcher.SchemeFilter
- func (fm *FetcherManager) Name() string
- func (fm *FetcherManager) ParseName(u string) string
- func (fm *FetcherManager) Restore() (v any, f func(meta *fetcher.FetcherMeta, v any) fetcher.Fetcher)
- func (fm *FetcherManager) Store(f fetcher.Fetcher) (data any, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNativeZeroLengthFile ¶ added in v1.3.5
A helper to create zero-length files which won't appear for file-orientated storage since no writes will ever occur to them (no torrent data is associated with a zero-length file). The caller should make sure the file name provided is safe/sanitized.
Types ¶
type DnsCacheResolver ¶ added in v1.5.8
type DnsCacheResolver struct { RefreshTimeout time.Duration // contains filtered or unexported fields }
DnsCacheResolver resolves DNS requests for an HTTP client using an in-memory cache.
func (*DnsCacheResolver) DialContext ¶ added in v1.5.8
func (*DnsCacheResolver) Run ¶ added in v1.5.8
func (r *DnsCacheResolver) Run(ctx context.Context)
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func (*Fetcher) Meta ¶
func (f *Fetcher) Meta() *fetcher.FetcherMeta
func (*Fetcher) Setup ¶
func (f *Fetcher) Setup(ctl *controller.Controller)
func (*Fetcher) UploadedBytes ¶ added in v1.5.8
func (*Fetcher) WaitUpload ¶ added in v1.5.8
type FetcherManager ¶ added in v1.5.8
type FetcherManager struct { }
func (*FetcherManager) AutoRename ¶ added in v1.5.9
func (fm *FetcherManager) AutoRename() bool
func (*FetcherManager) Build ¶ added in v1.5.8
func (fm *FetcherManager) Build() fetcher.Fetcher
func (*FetcherManager) Close ¶ added in v1.5.8
func (fm *FetcherManager) Close() error
func (*FetcherManager) DefaultConfig ¶ added in v1.5.8
func (fm *FetcherManager) DefaultConfig() any
func (*FetcherManager) Filters ¶ added in v1.5.8
func (fm *FetcherManager) Filters() []*fetcher.SchemeFilter
func (*FetcherManager) Name ¶ added in v1.5.8
func (fm *FetcherManager) Name() string
func (*FetcherManager) ParseName ¶ added in v1.5.9
func (fm *FetcherManager) ParseName(u string) string
func (*FetcherManager) Restore ¶ added in v1.5.8
func (fm *FetcherManager) Restore() (v any, f func(meta *fetcher.FetcherMeta, v any) fetcher.Fetcher)
Click to show internal directories.
Click to hide internal directories.