events

package
v0.4.3-testnet Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "events"
	TraceTag = Name
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	*work_process.WorkProcess[Input]
	// contains filtered or unexported fields
}

func New

func New(env environment) *Events

func (*Events) OnEvent

func (d *Events) OnEvent(eventCode eventtype.EventCode, fun any)

OnEvent is async

func (*Events) PostEvent

func (d *Events) PostEvent(eventCode eventtype.EventCode, arg any)

type Input

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

Jump to

Keyboard shortcuts

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