Documentation
¶
Index ¶
- Variables
- func Context() gofiber.Handler
- func CreateApplication(after AfterCreate, cfg ...gofiber.Config) *gofiber.App
- func ErrorHandler() gofiber.ErrorHandler
- func ErrorHandlerWithCustomHandler(logger zerolog.Logger, handler gofiber.ErrorHandler) gofiber.ErrorHandler
- func RunServer(ip string, port int, app *gofiber.App)
- type AfterCreate
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFiberConfig = gofiber.Config{ StrictRouting: true, EnablePrintRoutes: false, Prefork: false, DisableStartupMessage: true, DisableDefaultDate: true, DisableHeaderNormalizing: false, DisablePreParseMultipartForm: true, DisableKeepalive: false, EnableIPValidation: true, EnableSplittingOnParsers: true, ErrorHandler: ErrorHandler(), JSONEncoder: json.Marshal, JSONDecoder: json.Unmarshal, }
View Source
var ErrDefaultHandler = errors.New("default handler")
Functions ¶
func CreateApplication ¶
func CreateApplication(after AfterCreate, cfg ...gofiber.Config) *gofiber.App
func ErrorHandler ¶
func ErrorHandler() gofiber.ErrorHandler
func ErrorHandlerWithCustomHandler ¶
func ErrorHandlerWithCustomHandler(logger zerolog.Logger, handler gofiber.ErrorHandler) gofiber.ErrorHandler
Types ¶
type AfterCreate ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message any `json:"message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.