Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONFIGFILE = "termfb2.conf" LASTFILE = "last" DBFILE = "book.db" DBCOLLECTION = "books" VENDOR = ".rionnag" APPNAME = "termfb2" )
View Source
const ( FIELD_AUTHOR = "author" FIELD_TITLE = "title" FIELD_ADDED = "added" FIELD_COMPLETED = "completed" FIELD_GENRE = "genre" FIELD_PERCENT = "percent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookDb ¶
type BookDb interface { ReadDatabase() SetFilter(filter string) Filter() string FilteredBooks() []BookRecord DeleteBookByIndex(index int) BookList() []BookRecord UpdateBookInDb(bookPath string, position, length int, bookInfo *BookRecord) SetSortMode(field string, asc bool) BookByFilePath(filePath string) (BookRecord, bool) }
Click to show internal directories.
Click to hide internal directories.