http

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) error

func (*Fetcher) Meta

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

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) Stats added in v1.5.4

func (f *Fetcher) Stats() any

func (*Fetcher) Wait

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

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)

func (*FetcherManager) Store added in v1.5.8

func (fm *FetcherManager) Store(f fetcher.Fetcher) (data any, err error)

type RequestError

type RequestError struct {
	Code int
	Msg  string
}

func NewRequestError

func NewRequestError(code int, msg string) *RequestError

func (*RequestError) Error

func (re *RequestError) Error() string

Jump to

Keyboard shortcuts

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