datastore

package
v0.0.0-...-d3ca24b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: BSD-3-Clause Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmpty

func CheckEmpty(table string) bool

func CheckIn

func CheckIn(listener string) ([]utils.DataTable, error)

func CreateDB

func CreateDB()

func FetchAll

func FetchAll(table string) []utils.DataTable

func GetOne

func GetOne(basepath, path string) (utils.DataTable, error)

func Insert

func Insert(table string, item utils.FsItem) bool

func PathExists

func PathExists(listener, path string) bool

func Remove

func Remove(table, path string) bool

func UpdateHost

func UpdateHost(table, path string)

Types

type Datastore

type Datastore interface {
	Insert(table string, item utils.FsItem) bool
	Remove(table, path string) bool
	CheckEmpty(table string) bool
	FetchAll(table string) []utils.DataTable
	CheckIn(listener string) ([]utils.DataTable, error)
	GetOne(listener, path string) (utils.DataTable, error)
	UpdateHost(table, path string)
	PathExists(listener, path string) bool
	CreateDB()
}

type MySQLDB

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

func (*MySQLDB) CheckEmpty

func (my *MySQLDB) CheckEmpty(table string) bool

func (*MySQLDB) CheckIn

func (my *MySQLDB) CheckIn(table string) ([]utils.DataTable, error)

func (*MySQLDB) CreateDB

func (my *MySQLDB) CreateDB()

func (*MySQLDB) FetchAll

func (my *MySQLDB) FetchAll(table string) []utils.DataTable

func (*MySQLDB) GetOne

func (my *MySQLDB) GetOne(listener, path string) (utils.DataTable, error)

func (*MySQLDB) Insert

func (my *MySQLDB) Insert(table string, item utils.FsItem) bool

func (*MySQLDB) PathExists

func (my *MySQLDB) PathExists(listener, path string) bool

func (*MySQLDB) Remove

func (my *MySQLDB) Remove(table, path string) bool

func (*MySQLDB) UpdateHost

func (my *MySQLDB) UpdateHost(table, path string)

Jump to

Keyboard shortcuts

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