Documentation ¶
Index ¶
- type Collection
- type JDB
- func (j *JDB) Delete(collection, resource string) error
- func (j *JDB) Read(collection, key string, v interface{}) error
- func (j *JDB) ReadAll(collection string) ([]string, error)
- func (j *JDB) ReadAllPerPages(collection string, per, page int) (p []map[string]interface{})
- func (j *JDB) Write(collection, key string, v interface{}) error
- func (j *JDB) WriteAll(data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
type JDB ¶
type JDB struct {
// contains filtered or unexported fields
}
func (*JDB) Delete ¶
Delete locks that database and then attempts to remove the collection/resource specified by path
func (*JDB) ReadAll ¶
ReadAll records from a collection; this is returned as a slice of strings because there is no way of knowing what type the record is.
func (*JDB) ReadAllPerPages ¶
Click to show internal directories.
Click to hide internal directories.