meta

package
v0.0.0-...-930013b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TAG       = "tag_"
	SPLIT     = "/"
	DIRECTORY = "DIRECTORY_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaDriver

type MetaDriver interface {
	StoreMetaInfoV1(metaInfo *MetaInfo) error
	StoreMetaInfoV2(metaInfo *MetaInfo) error
	DeleteFileMetaInfoV1(path string) error
	DeleteFileMetaInfoV2(path string) error
	GetDirectoryInfo(path string) ([]string, error)
	GetDescendantPath(path string) ([]string, error)
	MoveFile(sourcePath, destPath string) error
	GetFileMetaInfo(path string, detail bool) ([]*MetaInfoValue, error)
	GetFragmentMetaInfo(path string, index, start, end uint64) (*MetaInfoValue, error)
}

type MetaInfo

type MetaInfo struct {
	Path  string
	Value *MetaInfoValue
}

type MetaInfoValue

type MetaInfoValue struct {
	Index   uint64
	Start   uint64
	End     uint64
	GroupId uint16 `json:",omitempty"`
	FileId  uint64 `json:",omitempty"`
	IsLast  bool
	ModTime time.Time `json:",omitempty`
}

TODO groupId == 0 or fileId == 0 may cause error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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