syncer

package
v0.0.0-...-5fe2467 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(conn *sftp.Client, local string, remote string, workers int)

Types

type DownloadJob

type DownloadJob struct {
	Info      FileInfo
	LocalPath string
}

type FileInfo

type FileInfo struct {
	FullPath     string
	RelativePath string
	Info         os.FileInfo
}

type FileProgressInfo

type FileProgressInfo struct {
	Info     FileInfo
	Progress int64
}

type RootStat

type RootStat struct {
	Size       int64
	Downloaded int64
}

type WriteCounter

type WriteCounter struct {
	Writer   io.Writer
	Progress chan<- int64
	Total    int64
}

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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