bt

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNativeZeroLengthFile added in v1.3.5

func CreateNativeZeroLengthFile(name string) error

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 Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func (*Fetcher) Close

func (f *Fetcher) Close() (err error)

func (*Fetcher) Create

func (f *Fetcher) Create(opts *base.Options) (err error)

func (*Fetcher) Meta

func (f *Fetcher) Meta() *fetcher.FetcherMeta

func (*Fetcher) Name

func (f *Fetcher) Name() string

func (*Fetcher) Pause

func (f *Fetcher) Pause() (err error)

func (*Fetcher) Progress

func (f *Fetcher) Progress() fetcher.Progress

func (*Fetcher) Resolve

func (f *Fetcher) Resolve(req *base.Request) error

func (*Fetcher) Setup

func (f *Fetcher) Setup(ctl *controller.Controller)

func (*Fetcher) Start

func (f *Fetcher) Start() (err error)

func (*Fetcher) Wait

func (f *Fetcher) Wait() (err error)

type FetcherBuilder

type FetcherBuilder struct {
}

func (*FetcherBuilder) Build

func (fb *FetcherBuilder) Build() fetcher.Fetcher

func (*FetcherBuilder) Restore

func (fb *FetcherBuilder) Restore() (v any, f func(meta *fetcher.FetcherMeta, v any) fetcher.Fetcher)

func (*FetcherBuilder) Schemes

func (fb *FetcherBuilder) Schemes() []string

func (*FetcherBuilder) Store

func (fb *FetcherBuilder) Store(f fetcher.Fetcher) (data any, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL