loader

package
v0.0.0-...-11b1965 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

func NewLoader

func NewLoader(input <-chan contract.Attachemt, options ...LoaderOption) *Loader

func (*Loader) StartLoading

func (p *Loader) StartLoading(parentConext context.Context)

func (*Loader) Wait

func (p *Loader) Wait() error

type LoaderOption

type LoaderOption = func(parser *Loader)

func AttachemtProgressBar

func AttachemtProgressBar(progressBar *pb.ProgressBar) LoaderOption

func Destination

func Destination(path string) LoaderOption

func ThreadsCount

func ThreadsCount(threadsCount int) LoaderOption

Jump to

Keyboard shortcuts

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