Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IndentJSON = false
Functions ¶
This section is empty.
Types ¶
type RecoveredErrorDetails ¶
type Recovery ¶
type Recovery struct {
WithRecoveredError func(errDetails *RecoveredErrorDetails) *RecoveryResponse
}
func NewRecovery ¶
func NewRecovery(withRecoveredError func(errDetails *RecoveredErrorDetails) *RecoveryResponse) *Recovery
func (*Recovery) ServeHTTP ¶
func (rec *Recovery) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
type RecoveryResponse ¶
type RecoveryResponse struct { StatusCode int JsonResponseObject interface{} }
Click to show internal directories.
Click to hide internal directories.