Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapMiddleware ¶ added in v0.3.0
func WrapMiddleware(handlers ...app.HandlerFunc) treemux.MiddlewareFunc[*Handler]
WrapMiddleware wraps hertz handler functions into a treemux MiddlewareFunc.
Types ¶
type Bridge ¶ added in v0.3.0
type Bridge struct { treemux.UnimplementedBridge[*Handler] // contains filtered or unexported fields }
Bridge implements treemux.Bridge[*Handler] and can be used as a dynamic-configurable router.
func (*Bridge) GetRouter ¶ added in v0.3.0
GetRouter returns the current router attached to this bridge.
func (*Bridge) IsHandlerValid ¶ added in v0.3.0
type Handler ¶ added in v0.3.0
type Handler struct {
HandlersChain app.HandlersChain
}
func WrapHandler ¶ added in v0.3.0
func WrapHandler(handlers ...app.HandlerFunc) *Handler
WrapHandler wraps hertz handler functions into a *Handler.
Click to show internal directories.
Click to hide internal directories.