Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Create(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Delete(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Get(ctx context.Context, rw http.ResponseWriter, req *http.Request)
- func (h *Handler) SetRoutes(r *mux.Router, extractor func(h chd.ContextHandler) chd.ContextHandler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(s storage.Storage, m middleware.Middleware) *Handler
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *mux.Router, extractor func(h chd.ContextHandler) chd.ContextHandler)
Click to show internal directories.
Click to hide internal directories.