Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶ added in v0.6.0
Register registers a middleware with a strongly typed config struct. It automatically handles the decoding of generic params (map[string]any) into struct T. Note: Fields in struct T should be tagged with `mapstructure` tags (e.g., `mapstructure:"prefix"`) to ensure parameters are correctly mapped and decoded from the configuration.
Types ¶
type CreateMiddlewareHandler ¶
type CreateMiddlewareHandler func(param any) (app.HandlerFunc, error)
CreateMiddlewareHandler is a function that creates an app.HandlerFunc from parameters.
func Factory ¶ added in v0.6.0
func Factory(kind string) CreateMiddlewareHandler
Factory returns a middleware creator for the given kind.
Click to show internal directories.
Click to hide internal directories.