Documentation ¶
Overview ¶
Package vevent 虚拟事件
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APICallerHook ¶
type APICallerHook struct {
// contains filtered or unexported fields
}
APICallerHook is a caller middleware
func NewAPICallerHook ¶
func NewAPICallerHook(ctx *zero.Ctx, callback func(rsp zero.APIResponse, err error)) (v *APICallerHook)
NewAPICallerHook hook ctx's caller
func (*APICallerHook) CallApi ¶
func (v *APICallerHook) CallApi(request zero.APIRequest) (rsp zero.APIResponse, err error)
CallApi call original caller and pass rsp to callback
Click to show internal directories.
Click to hide internal directories.