event

package
v0.0.0-...-3d980af Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 3 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{}, c context.Context, t <-chan time.Time, s chan struct{}) error

GetHandler 获取handler

func (*EventsHandler) RegHandler

func (e *EventsHandler) RegHandler(t string, handler func(i interface{}, c context.Context, t <-chan time.Time, s chan struct{}) error)

RegHandler 注册handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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