tikdog_sync

package
v0.0.0-...-040cd8a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmd

func GetCmd() *cobra.Command

func GetDbCmd

func GetDbCmd() *cobra.Command

func Hash

func Hash(data []byte) (hash string)

func Md5

func Md5(path string) string

func OssMove

func OssMove(k *oss.Bucket, srcObjectKey, destObjectKey string) error

func Range

func Range(min, max int) int

Types

type SyncFile

type SyncFile struct {
	Crc64ecma uint64
	Name      string
	Path      string
	Changed   bool
	Synced    bool
	Size      int64
	Mode      os.FileMode
	ModTime   int64
	IsDir     bool
}

type Waiter

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

func NewWaiter

func NewWaiter() *Waiter

func (*Waiter) Report

func (t *Waiter) Report(key string, c *atomic.Bool)

func (*Waiter) Skip

func (t *Waiter) Skip(key string) bool

Jump to

Keyboard shortcuts

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