Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookService ¶
type Handler ¶
type Handler struct { Router *mux.Router Service BookService Server *http.Server Log log.Logger AuthHandler *auth.Handler }
func NewHandler ¶
func NewHandler(service BookService, logger log.Logger) *Handler
func (*Handler) GetAllBooks ¶
func (h *Handler) GetAllBooks(w http.ResponseWriter, r *http.Request)
type Middlewares ¶
func NewMiddlewares ¶
func NewMiddlewares(logger log.Logger) *Middlewares
func (*Middlewares) LoggingMiddleware ¶
func (m *Middlewares) LoggingMiddleware(next http.Handler) http.Handler
type PostBookRequest ¶
Click to show internal directories.
Click to hide internal directories.