Documentation ¶
Index ¶
- func Connect() (*sql.DB, error)
- type Author
- type Book
- func (b Book) Add(ctx context.Context, book models.Book) error
- func (b Book) AddToFavorites(ctx context.Context, reader models.Reader, book models.Book) error
- func (b Book) AddToWishlist(ctx context.Context, reader models.Reader, book models.Book) error
- func (b Book) GetByID(ctx context.Context, book models.Book) (models.Book, error)
- func (b Book) GetMany(ctx context.Context, filter models.DataFilter) ([]models.Book, error)
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.