event

package
v0.0.0-...-25d1615 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(ctx context.Context, e *Event, data map[string]interface{})

func EmitLocalEvent

func EmitLocalEvent(eventData map[string]interface{})

func RegisterEventHandler

func RegisterEventHandler(handler localEventHandler)

Types

type Event

type Event struct {
	Name string
	Tag  string
}

func NewEvent

func NewEvent(name, tag string) *Event

type IRestContext

type IRestContext interface {
	AddEvent(eventData map[string]interface{})
}

IRestContext 解决循环依赖的临时方案

Jump to

Keyboard shortcuts

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