Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorHandler ¶ added in v0.2.5
func NewErrorHandler() ogenerrors.ErrorHandler
NewErrorHandler returns an ogen ErrorHandler that logs errors and returns RFC 7807 Problem Details responses.
func NewErrorHandlerModule ¶ added in v0.2.5
NewErrorHandlerModule provides the error handler for ogen servers.
Types ¶
type FieldError ¶
type Problem ¶
type Problem struct {
Type string `json:"type,omitempty"`
Title string `json:"title"`
Status int `json:"status"`
Detail string `json:"detail,omitempty"`
Instance string `json:"instance,omitempty"`
TraceID string `json:"traceId,omitempty"`
Errors []FieldError `json:"errors,omitempty"`
}
Problem represents RFC7807 Problem Details for HTTP APIs.
Click to show internal directories.
Click to hide internal directories.