Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DataStorer ¶
type DataStorer interface { PutBook(*models.Book) error IsBookExist(book *models.Book) (bool, error) FindBooks(models.Search) ([]models.Book, error) FindBooksSeries(models.Search) ([]models.Book, error) FindBooksByLibID(libID string) ([]models.Book, error) FindAuthors(author string, limit int) ([]models.Author, error) GetAuthor(authorID uint) (*models.Author, error) ListAuthorBooks(authorID uint, noDetails bool, params models.Search) ([]models.Book, error) GetBook(bookID uint) (*models.Book, error) GetLangs() ([]string, error) IsContainerExist(fileName string) bool }
DataStorer interface for data layer
func NewDBStore ¶
func NewDBStore(dbType, connect, logLevel string) (DataStorer, error)
NewDBStore creates new instance of datastorer
Click to show internal directories.
Click to hide internal directories.