Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ StackTraceBufLen: 1280, Handler: func(r interface{}) *fiber.Error { if v, ok := r.(error); ok { return fiber.NewError(fiber.StatusInternalServerError, v.Error()) } return fiber.NewError(fiber.StatusInternalServerError) }, }
Functions ¶
Types ¶
type Config ¶
type Config struct { StackTraceBufLen int Handler ErrorHandler }
type ErrorHandler ¶
type ErrorHandler func(r interface{}) *fiber.Error
Click to show internal directories.
Click to hide internal directories.