Documentation ¶
Index ¶
- Constants
- func ErrorHandler(path, title string, handler ContextInitiator) fiber.ErrorHandler
- func ExtendMap(mp map[string]string) map[string][]string
- func Fiber(handler any) func(c *fiber.Ctx) error
- type ContextInitiator
- type FiberParser
- func (c FiberParser) Abort() error
- func (c FiberParser) CheckUrlParam(name string) (string, bool)
- func (c FiberParser) FileAttachment(path, fileName string)
- func (c FiberParser) FormValue(name string) string
- func (c FiberParser) GetArgs(args ...any) map[string]string
- func (c FiberParser) GetBody(target any) error
- func (c FiberParser) GetHeader(target webFramework.HeaderInterface) error
- func (c FiberParser) GetHeaderValue(name string) string
- func (c FiberParser) GetHttpHeader() http.Header
- func (c FiberParser) GetLocal(name string) any
- func (c FiberParser) GetLocalString(name string) string
- func (c FiberParser) GetMethod() string
- func (c FiberParser) GetPath() string
- func (c FiberParser) GetRawUrlQuery() string
- func (c FiberParser) GetUri(target any) error
- func (c FiberParser) GetUrlParam(name string) string
- func (c FiberParser) GetUrlParams() map[string]string
- func (c FiberParser) GetUrlQuery(target any) error
- func (c FiberParser) Next() error
- func (c FiberParser) ParseCommand(command, title string, request webFramework.RecordData, ...) string
- func (c FiberParser) SaveFile(formTagName, path string) error
- func (c FiberParser) SendJSONRespBody(status int, resp any) error
- func (c FiberParser) SetLocal(name string, value any)
- func (c FiberParser) SetReqHeader(name string, value string)
- func (c FiberParser) SetRespHeader(name string, value string)
Constants ¶
View Source
const FiberCtxKey = "fiber.Ctx"
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(path, title string, handler ContextInitiator) fiber.ErrorHandler
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) 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)
Click to show internal directories.
Click to hide internal directories.