Versions in this module Expand all Collapse all v0 v0.5.2 Oct 27, 2021 v0.5.1 Oct 17, 2021 v0.5.0 Oct 15, 2021 v0.4.8 Sep 28, 2021 v0.4.7 Sep 23, 2021 v0.4.6 Sep 23, 2021 v0.4.5 Sep 23, 2021 Changes in this version + func BadRequest(w http.ResponseWriter, msg interface{}) (int, error) + func Conflict(w http.ResponseWriter, msg interface{}) (int, error) + func Forbidden(w http.ResponseWriter, msg interface{}) (int, error) + func InternalServerError(w http.ResponseWriter, msg interface{}) (int, error) + func MountRoutes(c *ent.Client, l *zap.Logger, r chi.Router) + func NewHandler(c *ent.Client, l *zap.Logger) chi.Router + func NotFound(w http.ResponseWriter, msg interface{}) (int, error) + func Unauthorized(w http.ResponseWriter, msg interface{}) (int, error) + type ErrResponse struct + Code int + Errors interface{} + Status string + func (e ErrResponse) MarshalToHTTPResponseWriter(w http.ResponseWriter) (int, error) + func (v *ErrResponse) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v ErrResponse) MarshalEasyJSON(w *jwriter.Writer) + type User3451555716View struct + ID int + UUID uuid.UUID + func NewUser3451555716View(e *ent.User) *User3451555716View + func (v *User3451555716View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v User3451555716View) MarshalEasyJSON(w *jwriter.Writer) + type User3451555716Views []*User3451555716View + func NewUser3451555716Views(es []*ent.User) User3451555716Views + func (v *User3451555716Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v User3451555716Views) MarshalEasyJSON(w *jwriter.Writer) + type UserCreateRequest struct + UUID *uuid.UUID + func (v *UserCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v UserCreateRequest) MarshalEasyJSON(w *jwriter.Writer) + type UserHandler struct + func NewUserHandler(c *ent.Client, l *zap.Logger) *UserHandler + func (h *UserHandler) List(w http.ResponseWriter, r *http.Request) + func (h *UserHandler) MountCreateRoute(r chi.Router) *UserHandler + func (h *UserHandler) MountDeleteRoute(r chi.Router) *UserHandler + func (h *UserHandler) MountListRoute(r chi.Router) *UserHandler + func (h *UserHandler) MountReadRoute(r chi.Router) *UserHandler + func (h *UserHandler) MountRoutes(r chi.Router) + func (h *UserHandler) MountUpdateRoute(r chi.Router) *UserHandler + func (h *UserHandler) Read(w http.ResponseWriter, r *http.Request) + func (h UserHandler) Create(w http.ResponseWriter, r *http.Request) + func (h UserHandler) Delete(w http.ResponseWriter, r *http.Request) + func (h UserHandler) Update(w http.ResponseWriter, r *http.Request) + type UserUpdateRequest struct + UUID *uuid.UUID + func (v *UserUpdateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v UserUpdateRequest) MarshalEasyJSON(w *jwriter.Writer)