vevent

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

Package vevent 虚拟事件

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HookCtxCaller added in v1.4.0

func HookCtxCaller(ctx *zero.Ctx, hook zero.APICaller)

HookCtxCaller change ctx's caller to hook

Types

type APICallerReturnHook added in v1.7.0

type APICallerReturnHook struct {
	// contains filtered or unexported fields
}

APICallerReturnHook is a caller middleware

func NewAPICallerReturnHook added in v1.7.0

func NewAPICallerReturnHook(ctx *zero.Ctx, callback func(rsp zero.APIResponse, err error)) (v *APICallerReturnHook)

NewAPICallerReturnHook hook ctx's caller

func (*APICallerReturnHook) CallApi added in v1.7.0

func (v *APICallerReturnHook) CallApi(request zero.APIRequest) (rsp zero.APIResponse, err error)

CallApi call original caller and pass rsp to callback

type Ctx

type Ctx struct {
	Event *zero.Event
	State zero.State
	// contains filtered or unexported fields
}

Ctx represents the Context which hold the event. 代表上下文

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL