transfers

package
v1.1.1692 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpinnerStyle = []string{"∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙"}

Functions

This section is empty.

Types

type Transfers

type Transfers struct {
	SyncFlag              bool
	SendLogsToCloud       bool
	DisableProgressOutput bool
	ConcurrentFiles       int
	Progress              *mpb.Progress

	ETA          ewma.MovingAverage
	TransferRate ewma.MovingAverage
	Ignore       *[]string
	*manager.Manager
	// contains filtered or unexported fields
}

func New

func New() *Transfers

func (*Transfers) AfterJob

func (t *Transfers) AfterJob(ctx context.Context, job *status.Job, config files_sdk.Config) error

func (*Transfers) EndingStatusErrors

func (t *Transfers) EndingStatusErrors()

func (*Transfers) FinishMainTotal

func (t *Transfers) FinishMainTotal(job *status.Job)

func (*Transfers) Init

func (t *Transfers) Init(ctx context.Context) *Transfers

func (*Transfers) LogJobError

func (t *Transfers) LogJobError(err error, path string)

func (*Transfers) Reporter

func (t *Transfers) Reporter() status.EventsReporter

func (*Transfers) SendLogs

func (t *Transfers) SendLogs(ctx context.Context, config files_sdk.Config) error

func (*Transfers) SetupSignals added in v1.1.1679

func (t *Transfers) SetupSignals(job *status.Job)

func (*Transfers) StartLog

func (t *Transfers) StartLog(transferType string)

func (*Transfers) UpdateMainTotal

func (t *Transfers) UpdateMainTotal(job *status.Job)

Jump to

Keyboard shortcuts

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