event

package
v0.0.0-...-ac046d6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

任务调度

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsHandler

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

func NewEventsHandler

func NewEventsHandler() *EventsHandler

func (*EventsHandler) GetHandler

func (e *EventsHandler) GetHandler(t string) func(i interface{}) error

GetHandler 获取handler

func (*EventsHandler) GetPreProcess

func (e *EventsHandler) GetPreProcess(t string) func(i interface{}) bool

GetPreProcess 获取PreProcess

func (*EventsHandler) RegHandler

func (e *EventsHandler) RegHandler(t string, handler func(i interface{}) error)

RegHandler 注册handler

func (*EventsHandler) RegPreProcess

func (e *EventsHandler) RegPreProcess(t string, preProcess func(i interface{}) bool)

RegPreProcess 注册预处理PreProcess

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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