libFiber

package
v0.11.19 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FiberCtxKey = "fiber.Ctx"

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(path, title string, handler ContextInitiator) fiber.ErrorHandler

func ExtendMap

func ExtendMap(mp map[string]string) map[string][]string

func Fiber

func Fiber(handler any) func(c *fiber.Ctx) error

Types

type ContextInitiator added in v0.7.2

type ContextInitiator interface {
	InitContext(c *fiber.Ctx) webFramework.WebFramework
	Respond(int, int, string, any, bool, webFramework.WebFramework)
}

type FiberParser

type FiberParser struct {
	Ctx *fiber.Ctx
}

func InitContext

func InitContext(c *fiber.Ctx) FiberParser

func (FiberParser) Abort added in v0.7.0

func (c FiberParser) Abort() error

func (FiberParser) CheckUrlParam

func (c FiberParser) CheckUrlParam(name string) (string, bool)

func (FiberParser) FileAttachment added in v0.10.4

func (c FiberParser) FileAttachment(path, fileName string)

func (FiberParser) FormValue added in v0.10.1

func (c FiberParser) FormValue(name string) string

func (FiberParser) GetArgs

func (c FiberParser) GetArgs(args ...any) map[string]string

func (FiberParser) GetBody

func (c FiberParser) GetBody(target any) error

func (FiberParser) GetHeader

func (c FiberParser) GetHeader(target webFramework.HeaderInterface) error

func (FiberParser) GetHeaderValue

func (c FiberParser) GetHeaderValue(name string) string

func (FiberParser) GetHttpHeader

func (c FiberParser) GetHttpHeader() http.Header

func (FiberParser) GetLocal

func (c FiberParser) GetLocal(name string) any

func (FiberParser) GetLocalString

func (c FiberParser) GetLocalString(name string) string

func (FiberParser) GetMethod

func (c FiberParser) GetMethod() string

func (FiberParser) GetPath

func (c FiberParser) GetPath() string

func (FiberParser) GetRawUrlQuery

func (c FiberParser) GetRawUrlQuery() string

func (FiberParser) GetUri added in v0.5.7

func (c FiberParser) GetUri(target any) error

func (FiberParser) GetUrlParam

func (c FiberParser) GetUrlParam(name string) string

func (FiberParser) GetUrlParams

func (c FiberParser) GetUrlParams() map[string]string

func (FiberParser) GetUrlQuery

func (c FiberParser) GetUrlQuery(target any) error

func (FiberParser) Next added in v0.7.0

func (c FiberParser) Next() error

func (FiberParser) ParseCommand

func (c FiberParser) ParseCommand(command, title string, request webFramework.RecordData, parser webFramework.FieldParser) string

func (FiberParser) SaveFile added in v0.10.1

func (c FiberParser) SaveFile(
	formTagName, path string,
) error

func (FiberParser) SendJSONRespBody added in v0.7.0

func (c FiberParser) SendJSONRespBody(status int, resp any) error

func (FiberParser) SetLocal

func (c FiberParser) SetLocal(name string, value any)

func (FiberParser) SetReqHeader added in v0.7.5

func (c FiberParser) SetReqHeader(name string, value string)

func (FiberParser) SetRespHeader added in v0.10.28

func (c FiberParser) SetRespHeader(name string, value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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