mysqldriver

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADDFILE = 1
	DELFILE = 2
)

Variables

This section is empty.

Functions

func InitMeta

func InitMeta(metadbIp string, metadbPort int, metadbUser, metadbPassword, metaDatabase string) error

Types

type MysqlDriver

type MysqlDriver struct {
}

func (*MysqlDriver) DeleteFileMetaInfoV1

func (db *MysqlDriver) DeleteFileMetaInfoV1(path string) error

func (*MysqlDriver) DeleteFileMetaInfoV2

func (db *MysqlDriver) DeleteFileMetaInfoV2(path string) error

func (*MysqlDriver) ExtractDirectoryAndFile

func (db *MysqlDriver) ExtractDirectoryAndFile(path string) (string, string)

path: repositories/username/ubuntu/tag_v2 key: DIRECTORY_repositories/username/ubuntu value: tag_v2

func (*MysqlDriver) GetDescendantPath

func (db *MysqlDriver) GetDescendantPath(path string) ([]string, error)

func (*MysqlDriver) GetDirectoryInfo

func (db *MysqlDriver) GetDirectoryInfo(path string) ([]string, error)

func (*MysqlDriver) GetFileMetaInfo

func (db *MysqlDriver) GetFileMetaInfo(path string, detail bool) ([]*MetaInfoValue, error)

[(Index0, Start0, End0, IsLast0), (Index1, Start1, End1, IsLast1)]

func (*MysqlDriver) GetFragmentMetaInfo

func (db *MysqlDriver) GetFragmentMetaInfo(path string, index, start, end uint64) (*MetaInfoValue, error)

func (*MysqlDriver) HandleDirectory

func (db *MysqlDriver) HandleDirectory(path string, opcode int16) error

repositories/username/ubuntu/tag_v2

func (*MysqlDriver) MoveFile

func (db *MysqlDriver) MoveFile(sourcePath, destPath string) error

func (*MysqlDriver) StoreMetaInfoV1

func (db *MysqlDriver) StoreMetaInfoV1(metaInfo *MetaInfo) error

func (*MysqlDriver) StoreMetaInfoV2

func (db *MysqlDriver) StoreMetaInfoV2(metaInfo *MetaInfo) error

Jump to

Keyboard shortcuts

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