fiber

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Context

func Context() gofiber.Handler

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

func RunServer

func RunServer(ip string, port int, app *gofiber.App)

Types

type AfterCreate

type AfterCreate func(*gofiber.App)

type ErrorResponse

type ErrorResponse struct {
	Message any `json:"message,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL