pickfiber

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: BSD-3-Clause Imports: 15 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 Header struct {
	*fasthttp.ResponseHeader
}

func (Header) Add added in v1.9.0

func (h Header) Add(key, value string)

func (Header) Get added in v1.9.0

func (h Header) Get(key string) string

func (Header) Range added in v1.9.0

func (h Header) Range(f func(key, value string))

func (Header) Set added in v1.9.0

func (h Header) Set(key, value string)

func (Header) Values added in v1.9.0

func (h Header) Values(key string) []string

type Writer added in v1.8.7

type Writer struct {
	fiber.Ctx
}

func (Writer) Header added in v1.9.0

func (w Writer) Header() httpi.Header

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