Versions in this module Expand all Collapse all v1 v1.0.0 Mar 12, 2023 Changes in this version + func ConfigureServer(handler *Handler) *mux.Router + type Handler struct + func NewHandler(bs *db.BookService, us *db.UserService) *Handler + func (h *Handler) BookUpsert(w http.ResponseWriter, r *http.Request) + func (h *Handler) Index(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListBooks(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListUserByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) SwapBook(w http.ResponseWriter, r *http.Request) + func (h *Handler) UserUpsert(w http.ResponseWriter, r *http.Request) + type Response struct + Books []db.Book + Error string + Message string + User *db.User