Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookDetails ¶
type Books ¶
type Books struct {
Page int `json:"page"`
PerPage int `json:"perPage"`
Items []BookDetails `json:"items"`
}
type BooksHandler ¶
type BooksHandler interface {
Create(resp http.ResponseWriter, r *http.Request)
Read(resp http.ResponseWriter, r *http.Request)
ReadBooks(resp http.ResponseWriter, r *http.Request)
Update(resp http.ResponseWriter, r *http.Request)
Delete(resp http.ResponseWriter, r *http.Request)
}
func NewHttpHandler ¶
func NewHttpHandler(bookService domain.Book) BooksHandler
type UpdateBookDetails ¶
Click to show internal directories.
Click to hide internal directories.