handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadHandler

func DownloadHandler(ctx context.Context,
	piece string,
	api string,
	config map[string]string,
	outDir string,
	concurrency int,
) error

Types

type DuplicateRecordError added in v0.3.0

type DuplicateRecordError struct {
	Err error
}

func NewDuplicateRecordError added in v0.3.0

func NewDuplicateRecordError(err string) DuplicateRecordError

func (DuplicateRecordError) Error added in v0.3.0

func (e DuplicateRecordError) Error() string

func (DuplicateRecordError) Unwrap added in v0.3.0

func (e DuplicateRecordError) Unwrap() error

type InvalidParameterError added in v0.3.0

type InvalidParameterError struct {
	Err error
}

func NewInvalidParameterErr added in v0.3.0

func NewInvalidParameterErr(err string) InvalidParameterError

func (InvalidParameterError) Error added in v0.3.0

func (e InvalidParameterError) Error() string

func (InvalidParameterError) Unwrap added in v0.3.0

func (e InvalidParameterError) Unwrap() error

type NotFoundError added in v0.3.0

type NotFoundError struct {
	Err error
}

func (NotFoundError) Error added in v0.3.0

func (e NotFoundError) Error() string

func (NotFoundError) Unwrap added in v0.3.0

func (e NotFoundError) Unwrap() error

Directories

Path Synopsis
Code generated.
Code generated.

Jump to

Keyboard shortcuts

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