downloader

package
v0.0.0-...-39d03c2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaPage   string = "__DOWNLOADER_PAGING_PAGE__"
	MetaOffset string = "__DOWNLOADER_PAGING_OFFSET__"
	MetaLimit  string = "__DOWNLOADER_PAGING_LIMIT__"
	MetaBefore string = "__DOWNLOADER_PAGING_BEFORE__"
	MetaAfter  string = "__DOWNLOADER_PAGING_AFTER__"
)

Variables

This section is empty.

Functions

func New

func New(engine StorageEngine, options map[string]interface{}) pipeline.Pipeline

Types

type Pagination

type Pagination struct {
	Page   int
	Offset int
	After  string
	Before string
}

type PagingInitialization

type PagingInitialization struct {
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func (*PagingInitialization) Exec

func (pipeline *PagingInitialization) Exec(ctx *context.Context) (*context.Context, error)

func (*PagingInitialization) SetNext

func (pipeline *PagingInitialization) SetNext(next pipeline.Pipeline)

type PagingSetter

type PagingSetter struct {
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func (*PagingSetter) Exec

func (pipeline *PagingSetter) Exec(ctx *context.Context) (*context.Context, error)

func (*PagingSetter) SetNext

func (pipeline *PagingSetter) SetNext(next pipeline.Pipeline)

type RESTDownloader

type RESTDownloader struct {
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func (*RESTDownloader) Exec

func (downloader *RESTDownloader) Exec(ctx *context.Context) (*context.Context, error)

func (*RESTDownloader) SetNext

func (downloader *RESTDownloader) SetNext(next pipeline.Pipeline)

type StorageEngine

type StorageEngine string
const (
	EngineREST StorageEngine = "rest"
)

Jump to

Keyboard shortcuts

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