ftp

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(callback func() error, retry int, sleep time.Duration) (err error)

Retry . retry one function until no error

Types

type Dao

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

Dao dao.

func New

func New(c *conf.Config) (d *Dao)

New create a instance of Dao and return.

func (*Dao) FileMd5

func (d *Dao) FileMd5(path string, md5Path string) (err error)

FileMd5 calculates the local file's md5 and store it in a file

func (*Dao) UploadFile

func (d *Dao) UploadFile(localPath string, remotePath string, url string) (err error)

UploadFile the file to remote frp server and update the md5 file

Jump to

Keyboard shortcuts

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