Documentation ¶
Overview ¶
Package events provides a basic event framework for murex
Index ¶
- func AddEventType(eventTypeName string, handlerInterface eventType, err error) error
- func Callback(name string, interrupt interface{}, block []rune, fileRef *ref.File, ...) (any, error)
- func CompileInterruptKey(interrupt, name string) string
- func DumpEventTypes() []string
- func DumpEvents() (dump map[string]interface{})
- type DumpT
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventType ¶
AddEventType registers your event type handlers
func Callback ¶
func Callback(name string, interrupt interface{}, block []rune, fileRef *ref.File, stdout, stderr stdio.Io, evtReturn any, background bool) (any, error)
Callback is a generic function your event handlers types should hook into so murex functions can remain consistent.
func CompileInterruptKey ¶
func DumpEventTypes ¶
func DumpEventTypes() []string
func DumpEvents ¶
func DumpEvents() (dump map[string]interface{})
DumpEvents is used for `runtime` to output all the saved events
Types ¶
Click to show internal directories.
Click to hide internal directories.