gfiber

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(options server.Options, routerProvider func(engine *fiber.App), middleware ...any) server.Server

func ShouldBindBody

func ShouldBindBody(ctx *fiber.Ctx, obj any) error

ShouldBindBody binds the request body to a struct. It supports decoding the following content types based on the Content-Type header: application/json, application/xml, application/x-www-form-urlencoded, multipart/form-data If none of the content types above are matched, it will return a ErrUnprocessableEntity error

func ShouldBindHeader

func ShouldBindHeader(ctx *fiber.Ctx, obj any) error

func ShouldBindParams

func ShouldBindParams(ctx *fiber.Ctx, obj any) error

func ShouldBindQuery

func ShouldBindQuery(ctx *fiber.Ctx, obj any) error

Types

type Server

type Server struct {
	Srv     *fiber.App
	Options server.Options
}

func (*Server) Run

func (server *Server) Run(graceful func())

func (*Server) Shutdown

func (server *Server) Shutdown()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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