event

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetType2EventHandler

func GetType2EventHandler(conf *config.Config) (map[string]Handler, bool)

func SetTypeHandler

func SetTypeHandler(conf *config.Config, eventType string, handler Handler)

func SetTypeHandler2

func SetTypeHandler2(conf *config.Config, eventType string, fn func(ctx *core.Context, event map[string]interface{}) error)

Types

type Handler

type Handler interface {
	GetEvent() interface{}
	Handle(*core.Context, interface{}) error
}

Directories

Path Synopsis
app
v1
core
gin

Jump to

Keyboard shortcuts

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