files

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffList

func DiffList(src_list, dist_list map[string]FileDesc) (up, del []string)

DiffList: return upload_list,del_list

func GetFileMD5

func GetFileMD5(pathname string) []byte

func GetFileMap

func GetFileMap(rootpath string) (map[string]FileDesc, error)

func GetUnixPath

func GetUnixPath(path1 string) string

func PostFile

func PostFile(filename, url string, valid *MyValid) []byte

upload and return new key cryptoed

Types

type FileDesc

type FileDesc struct {
	Pathname string
	Mtime    time.Time
	Size     int
	MD5      []byte
}

type MyValid

type MyValid struct {
	Sig []byte
	Msg []byte
}

Jump to

Keyboard shortcuts

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