Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParseRequestBody = errors.New("failed to parse request body").WithCode("ERR_PARSE_REQUEST_BODY").WithKind(errors.KindInvalidInput) ErrMissingCorrelationID = errors.New("missing correlation id parameter").WithCode("ERR_MISSING_CORRELATION_ID").WithKind(errors.KindInvalidInput) )
Functions ¶
func WriteError ¶
func WriteError(ctx context.Context, rw http.ResponseWriter, err error)
func WriteMessage ¶ added in v1.3.0
func WriteMessage(rw http.ResponseWriter, status int, msg string)
func WriteResponse ¶
func WriteResponse(rw http.ResponseWriter, status int, response any)
Types ¶
Click to show internal directories.
Click to hide internal directories.