event

package
v1.20.76 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AsyncEvent *asyncEvent

Functions

func RegisterEventHandler

func RegisterEventHandler(event string, handler MessageHandler)

Types

type Event

type Event struct {
	Name string
	Tag  string
}
var DEV_TEST *Event

func NewEvent

func NewEvent(name, tag string) *Event

type EventQueueService

type EventQueueService struct {
}

func NewEventQueueService

func NewEventQueueService() *EventQueueService

func (*EventQueueService) Listen

func (this *EventQueueService) Listen()

type MessageHandler

type MessageHandler interface {
	Handle(map[string]interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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