Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrorAttributeIDByDefault = "generalError"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorAttribute ¶
type ErrorDetailsResponse ¶
type ErrorDetailsResponse struct { Title string `json:"title"` Details string `json:"details"` Request string `json:"request"` Time string `json:"time"` ErrorTraceID string `json:"errorTraceId,omitempty"` }
ErrorDetailsResponse - application/problem+json (401, 403, 404, 418, 5XX)
type ErrorListResponse ¶
type ErrorListResponse []ErrorAttribute
ErrorListResponse - application/json (400)
type ErrorSender ¶
type ErrorSender struct {
// contains filtered or unexported fields
}
func NewErrorSender ¶
func NewErrorSender(encoder mrserver.ResponseEncoder) *ErrorSender
func NewErrorSenderWithOverrideFunc ¶
func NewErrorSenderWithOverrideFunc( encoder mrserver.ResponseEncoder, overrideFunc mrserver.HttpErrorOverrideFunc, ) *ErrorSender
func (*ErrorSender) SendError ¶
func (rs *ErrorSender) SendError(w http.ResponseWriter, r *http.Request, err error)
type FileSender ¶
type FileSender struct {
*Sender
}
func NewFileSender ¶
func NewFileSender(base *Sender) *FileSender
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func NewSender ¶
func NewSender(encoder mrserver.ResponseEncoder) *Sender
func (*Sender) SendNoContent ¶
func (rs *Sender) SendNoContent(w http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.