pickfiber

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FiberContextType = reflect.TypeOf((*fiberctx.Context)(nil))
)

Functions

func DocList added in v1.5.0

func DocList(ctx fiber.Ctx) error

func Register added in v1.5.1

func Register(engine *fiber.App, svcs ...pick.Service[fiber.Handler])

复用pick service,不支持单个接口的中间件

Types

type HandlerFunc added in v1.8.8

type HandlerFunc = func(ctx fiber.Ctx) error

type Writer added in v1.8.7

type Writer struct {
	fiber.Ctx
}

func (Writer) Set added in v1.8.7

func (w Writer) Set(k, v string)

func (Writer) Status added in v1.8.7

func (w Writer) Status(code int)

func (Writer) Write added in v1.8.7

func (w Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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