Documentation ¶
Index ¶
- type Handler
- func (p *Handler) Close() error
- func (p *Handler) GetBookById(ctx context.Context, id int64) (*models.Book, error)
- func (p *Handler) GetBookByName(ctx context.Context, name string) (*models.Book, error)
- func (p *Handler) GetBooksByShelfs(ctx context.Context, id int64) (*models.Shelf, error)
- func (p *Handler) GetPageByID(ctx context.Context, id int64) (*models.Page, error)
- func (p *Handler) GetShelves(ctx context.Context) (*models.Library, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler for pool connections
func (*Handler) GetBookById ¶
GetBookById return book by id
func (*Handler) GetBookByName ¶
GetBookByName return book by name
func (*Handler) GetBooksByShelfs ¶
GetShelfsID return books by id of shelf
func (*Handler) GetPageByID ¶
GetPageByID return page by id
Click to show internal directories.
Click to hide internal directories.