Documentation ¶
Index ¶
- func GetStatusCode(err error) int
- func RegisterError(matcher preseterrors.Matcher, statusCode int)
- func Respond(w http.ResponseWriter, r *http.Request, statusCode int, body any)
- func RespondError(w http.ResponseWriter, r *http.Request, err error)
- func RespondStatusCode(w http.ResponseWriter, r *http.Request, statusCode int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusCode ¶
func RegisterError ¶
func RegisterError(matcher preseterrors.Matcher, statusCode int)
func RespondError ¶
func RespondError(w http.ResponseWriter, r *http.Request, err error)
func RespondStatusCode ¶
func RespondStatusCode(w http.ResponseWriter, r *http.Request, statusCode int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.