Documentation
¶
Index ¶
- func CheckEmpty(table string) bool
- func CheckIn(listener string) ([]utils.DataTable, error)
- func CreateDB()
- func FetchAll(table string) []utils.DataTable
- func GetOne(basepath, path string) (utils.DataTable, error)
- func Insert(table string, item utils.FsItem) bool
- func PathExists(listener, path string) bool
- func Remove(table, path string) bool
- func UpdateHost(table, path string)
- type Datastore
- type MySQLDB
- func (my *MySQLDB) CheckEmpty(table string) bool
- func (my *MySQLDB) CheckIn(table string) ([]utils.DataTable, error)
- func (my *MySQLDB) CreateDB()
- func (my *MySQLDB) FetchAll(table string) []utils.DataTable
- func (my *MySQLDB) GetOne(listener, path string) (utils.DataTable, error)
- func (my *MySQLDB) Insert(table string, item utils.FsItem) bool
- func (my *MySQLDB) PathExists(listener, path string) bool
- func (my *MySQLDB) Remove(table, path string) bool
- func (my *MySQLDB) UpdateHost(table, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEmpty ¶
func PathExists ¶
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 (*MySQLDB) PathExists ¶
func (*MySQLDB) UpdateHost ¶
Click to show internal directories.
Click to hide internal directories.