postgres_store

package
v0.0.0-...-9931aa1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresConf

type PostgresConf struct {
	User               string
	Password           string
	HostName           string
	Port               int
	DataBase           string
	SslMode            string
	MaxIdleConnections int
	MaxOpenConnections int
}

type PostgresStore

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

func NewPostgresStore

func NewPostgresStore(master string, conf PostgresConf) *PostgresStore

func NewPostgresStore(master string, confs []PostgresConf, isSharding bool, shardCount int) *PostgresStore {

func (*PostgresStore) Close

func (s *PostgresStore) Close()

func (*PostgresStore) CreateFile

func (s *PostgresStore) CreateFile(fullFileName string, fid string) (err error)

func (*PostgresStore) Delete

func (s *PostgresStore) Delete(fullFilePath string) (err error)

func (*PostgresStore) DeleteDir

func (s *PostgresStore) DeleteDir(dirPath string, recursive bool) (err error)

func (*PostgresStore) DeleteDirectory

func (s *PostgresStore) DeleteDirectory(dirPath string, recursive bool) (err error)

func (*PostgresStore) DeleteFile

func (s *PostgresStore) DeleteFile(fullFileName string) (fid string, err error)

func (*PostgresStore) FindDir

func (s *PostgresStore) FindDir(dirPath string) (dirId filer.DirectoryId, err error)

func (*PostgresStore) FindDirectory

func (s *PostgresStore) FindDirectory(dirPath string) (dirId filer.DirectoryId, err error)

func (*PostgresStore) FindFile

func (s *PostgresStore) FindFile(fullFileName string) (fid string, err error)

func (*PostgresStore) FindFiles

func (s *PostgresStore) FindFiles(dirPath string, lastFileName string, limit int) (files []filer.FileEntry, err error)

func (*PostgresStore) Get

func (s *PostgresStore) Get(fullFilePath string) (fid string, err error)

func (*PostgresStore) ListDirectories

func (s *PostgresStore) ListDirectories(dirPath string) (dirs []filer.DirectoryEntry, err error)

func (*PostgresStore) ListDirs

func (s *PostgresStore) ListDirs(dirPath string) (dirs []filer.DirectoryEntry, err error)

func (*PostgresStore) ListFiles

func (s *PostgresStore) ListFiles(dirPath string, lastFileName string, limit int) (files []filer.FileEntry, err error)

func (*PostgresStore) Move

func (s *PostgresStore) Move(fromPath string, toPath string) (err error)

func (*PostgresStore) Put

func (s *PostgresStore) Put(fullFilePath string, fid string) (err error)

Jump to

Keyboard shortcuts

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