Documentation ¶
Index ¶
- Variables
- type Hook
- func (hook *Hook) GenHook(rcvr *reflect.Value) *Hook
- func (hook *Hook) HasPostMethodExecuteHook() bool
- func (hook *Hook) HasPreMethodExecuteHooks() bool
- func (hook *Hook) PostMethodExecuteHook(param reflect.Value) (data any, err error)
- func (hook *Hook) PostParamsParse(param reflect.Value) (err error)
- func (hook *Hook) PreMethodExecuteHook(ctx reflect.Value) (err error)
- type PostMethodExecuteHook
- type PostParamsParseHook
- type PostRouteMountHook
- type PreMethodExecuteHooks
- type PreRouteSetupHook
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PostJetCtxInitHooks = make([]func(ctx context.Ctx), 0)
)
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct { PostParamsParseHooks []*reflect.Value PostMethodExecuteHooks []*reflect.Value PreMethodExecuteHooks []*reflect.Value }
func (*Hook) HasPostMethodExecuteHook ¶ added in v0.0.3
func (*Hook) HasPreMethodExecuteHooks ¶
func (*Hook) PostMethodExecuteHook ¶
type PostMethodExecuteHook ¶
PostMethodExecuteHook Hook triggered after method execution but before returning
type PostParamsParseHook ¶
PostParamsParseHook Hook triggered after parameter parsing is complete
type PostRouteMountHook ¶
type PostRouteMountHook interface {
PostRouteMount()
}
PostRouteMountHook Hook triggered after route is mounted
type PreMethodExecuteHooks ¶
PreMethodExecuteHooks Hook triggered before method execution but before returning
type PreRouteSetupHook ¶
type PreRouteSetupHook interface {
PreRouteSetup()
}
Click to show internal directories.
Click to hide internal directories.