synchronizer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneWay

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

func NewOneWay

func NewOneWay(input, output client.Client, opt OneWayOpt) *OneWay

func (*OneWay) SetLogger

func (s *OneWay) SetLogger(l *log.Logger)

func (*OneWay) Sync

func (s *OneWay) Sync(errors chan<- error)

type OneWayOpt

type OneWayOpt struct {
	IgnoreExisting         bool
	IndirectUpload         bool
	UploadPathFormat       string
	AllowDelete            bool
	SingleThreadedFileSize int64
	ThreadCount            uint
	AttemptMax             uint
	AttemptDelay           time.Duration
	UploadCheckTimeout     time.Duration
	UploadCheckDelay       time.Duration
}

Jump to

Keyboard shortcuts

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