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, ms *db.MagazineService) *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) ListMagazines(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListUserByID_Books(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListUserByID_Magazines(w http.ResponseWriter, r *http.Request) + func (h *Handler) MagazineUpsert(w http.ResponseWriter, r *http.Request) + func (h *Handler) SwapBook(w http.ResponseWriter, r *http.Request) + func (h *Handler) SwapMagazine(w http.ResponseWriter, r *http.Request) + func (h *Handler) UserUpsert(w http.ResponseWriter, r *http.Request) + type Response struct + Error string + Items []T + Message string + User *db.User + type ResponseItemType interface