Documentation
¶
Index ¶
- func BadRequest(w http.ResponseWriter)
- func BadRequestError(w http.ResponseWriter, e error)
- func BadRequestFields(w http.ResponseWriter, fields map[string]string)
- func BadRequestMessage(w http.ResponseWriter, msg string)
- func Forbidden(w http.ResponseWriter)
- func InternalServerError(w http.ResponseWriter, e error)
- func MethodNotAllowed(w http.ResponseWriter)
- func NoContent(w http.ResponseWriter)
- func NotFound(w http.ResponseWriter)
- func PgxNoRows(w http.ResponseWriter, err error)
- func Unauthorized(w http.ResponseWriter)
- func UnauthorizedError(w http.ResponseWriter, e error)
- func WsError(conn *websocket.Conn, err error)
- type Error
- type ErrorWithFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter)
func BadRequestError ¶
func BadRequestError(w http.ResponseWriter, e error)
func BadRequestFields ¶
func BadRequestFields(w http.ResponseWriter, fields map[string]string)
func BadRequestMessage ¶
func BadRequestMessage(w http.ResponseWriter, msg string)
func Forbidden ¶
func Forbidden(w http.ResponseWriter)
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, e error)
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter)
func NoContent ¶
func NoContent(w http.ResponseWriter)
func NotFound ¶
func NotFound(w http.ResponseWriter)
func PgxNoRows ¶
func PgxNoRows(w http.ResponseWriter, err error)
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter)
func UnauthorizedError ¶
func UnauthorizedError(w http.ResponseWriter, e error)
Types ¶
Click to show internal directories.
Click to hide internal directories.