Documentation ¶
Index ¶
- func AuthorizeError(ctx context.Context, code int, message string, w http.ResponseWriter) (bool, *http.Request)
- func CommitTx(ctx context.Context, responseCode int) (code int, body []byte, err error)
- func ErrorResponse(ctx context.Context, code int, message string) (int, []byte, error)
- func ExtractJSON[ReqData jt.Defaulter[ReqData]](r *http.Request) (reqData ReqData, l *slog.Logger, ctx context.Context, code int, body []byte, ...)
- func RespondJSON(ctx context.Context, code int, data any) (int, []byte, error)
- type Error
- type Metadata
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeError ¶ added in v0.5.6
func ErrorResponse ¶
func ExtractJSON ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.