Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(ctx *HandlerCtx)
type HandlerCtx ¶
type HandlerCtx struct { *fasthttp.RequestCtx UriParams map[string]string UserParams map[string]any Runner INextHandler }
func (*HandlerCtx) Next ¶
func (s *HandlerCtx) Next()
type INextHandler ¶
type INextHandler interface {
GetNextHandler(*HandlerCtx) Handler
}
type INormalizer ¶
type IRegExpMaker ¶
type Layer ¶
type Layer struct { Handlers []Handler Name string Path string RegExp *regexp.Regexp Priority int Methods []string Restrictions Restrictions Meta map[string]any }
func (Layer) WithHandlers ¶
type Restrictions ¶
type StdNormalizer ¶
type StdNormalizer struct { RegExpMaker IRegExpMaker // contains filtered or unexported fields }
type StdRegExpMaker ¶
type StdRegExpMaker struct{}
func (*StdRegExpMaker) MakeRegExp ¶
func (maker *StdRegExpMaker) MakeRegExp(l Layer) *regexp.Regexp
Click to show internal directories.
Click to hide internal directories.