Documentation ¶
Index ¶
- type DB
- func (db *DB) Add(input File) (err error)
- func (db *DB) Get(id string) (result File, err error)
- func (db *DB) GetAll(status string, limit, page int) (result []File, err error)
- func (db *DB) GetAllOlderThan(age time.Time, limit, page int) (result []File, err error)
- func (db *DB) Remove(id string) (result File, err error)
- func (db *DB) Update(entry File) (old File, err error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a wrapper for the database.
func (*DB) Get ¶
Get searches for and returns a the corresponding entry from the database if the entry exists.
func (*DB) GetAllOlderThan ¶
Click to show internal directories.
Click to hide internal directories.