Documentation ¶
Index ¶
- type Fetcher
- func (f *Fetcher) Close() (err error)
- func (f *Fetcher) Create(opts *base.Options) error
- func (f *Fetcher) Meta() *fetcher.FetcherMeta
- func (f *Fetcher) Name() string
- 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) Wait() (err error)
- type FetcherBuilder
- type RequestError
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) Meta ¶
func (f *Fetcher) Meta() *fetcher.FetcherMeta
func (*Fetcher) Setup ¶
func (f *Fetcher) Setup(ctl *controller.Controller)
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
type RequestError ¶
func NewRequestError ¶
func NewRequestError(code int, msg string) *RequestError
func (*RequestError) Error ¶
func (re *RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.