metadata

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	NoAction Action = iota
	Download
	Upload
)

type Info

type Info struct {
	ID      string    `json:"cid"`
	SHA     string    `json:"sha"`
	AddTime time.Time `json:"dateTime"`
	Size    int64     `json:"size"`
}

type MetaData

type MetaData struct {
	Name   string `json:"name"`
	Path   string `json:"path"`
	Action Action `json:"action"`
	Info
	PastInfo []Info `json:"pastInfo"`
}

type MetaFiles

type MetaFiles map[string]*MetaData

func (MetaFiles) Sync

func (mfLoc MetaFiles) Sync(mfExo MetaFiles) MetaFiles

type MetaGetter

type MetaGetter interface {
	GetMetaData(source, targetPath string) (MetaFiles, error)
}

Jump to

Keyboard shortcuts

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