Documentation ¶
Index ¶
- func BadRequest(err error)
- func Bind(r *http.Request, dto any)
- func Created(w http.ResponseWriter, location string)
- func Forbidden(err error)
- func GetCriteria(r *http.Request) mongoext.Criteria
- func GetId(r *http.Request) string
- func IsDebug(log *zap.Logger) bool
- func JSON(w http.ResponseWriter, code int, data any)
- func NoContent(w http.ResponseWriter)
- func OK(w http.ResponseWriter, data any)
- func Unauthorized(err error)
- type HTTPError
- type ListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(err error)
func Created ¶
func Created(w http.ResponseWriter, location string)
func GetCriteria ¶
func NoContent ¶
func NoContent(w http.ResponseWriter)
func OK ¶
func OK(w http.ResponseWriter, data any)
func Unauthorized ¶
func Unauthorized(err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.