Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuccessResponseFieldKey = "status" ErrorResponseFieldKey = "error" )
Variables ¶
This section is empty.
Functions ¶
func ProvideRouter ¶
func ProvideRouter(bookService service.BooksService) *mux.Router
Types ¶
type BooksHandler ¶
type BooksHandler struct {
// contains filtered or unexported fields
}
func GetNewBooksHandler ¶
func GetNewBooksHandler(bookService service.BooksService) *BooksHandler
func (*BooksHandler) AddOrRemoveBookHandler ¶
func (bh *BooksHandler) AddOrRemoveBookHandler(w http.ResponseWriter, r *http.Request)
func (*BooksHandler) BooksHandler ¶
func (bh *BooksHandler) BooksHandler(w http.ResponseWriter, r *http.Request)
func (*BooksHandler) UpsertBookHandler ¶
func (bh *BooksHandler) UpsertBookHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.