Documentation ¶
Overview ¶
Package drivers contains our database driver connections, that can be used interchangeably by using interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBDriver ¶
type DBDriver interface { Search(string, bool, bool) (SearchFeed, error) Insert(string, *DBObj, bool) error Delete(string) error }
DBDriver defines our database interface, so that different drivers can be swapped out, as needed.
type DBObj ¶
type DBObj struct { Key string Obj interface{} }
DBObj holds our database objects, along with the key, for convenience
type SQ3Driver ¶
SQ3Driver is our DBDriver for sqlite3
func (*SQ3Driver) Delete ¶
Delete also returns the object it deleted. The key must be an exact match
type SearchFeed ¶
type SearchFeed chan *DBObj
SearchFeed is our channel to receive search results on
Click to show internal directories.
Click to hide internal directories.