httprouter

package
v0.2.10-65 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete[Req any, Rsp any](r *lava.Router, path string, w Handler[Req, Rsp], opts ...func(op *opendoc.Operation))

func Get

func Get[Req any, Rsp any](r *lava.Router, path string, w Handler[Req, Rsp], opts ...func(op *opendoc.Operation))

func Patch

func Patch[Req any, Rsp any](r *lava.Router, path string, w Handler[Req, Rsp], opts ...func(op *opendoc.Operation))

func Post

func Post[Req any, Rsp any](r *lava.Router, path string, w Handler[Req, Rsp], opts ...func(op *opendoc.Operation))

func Put

func Put[Req any, Rsp any](r *lava.Router, path string, w Handler[Req, Rsp], opts ...func(op *opendoc.Operation))

func WrapHandler

func WrapHandler[Req any, Rsp any](handle func(ctx *fiber.Ctx, req *Req) (rsp *Rsp, err error)) func(ctx *fiber.Ctx) error

Types

type Handler

type Handler[Req any, Rsp any] func(ctx *fiber.Ctx, req *Req) (rsp *Rsp, err error)

Jump to

Keyboard shortcuts

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