MCPcopy
hub / github.com/g3n/engine / Dispatcher

Struct Dispatcher

core/dispatcher.go:17–19  ·  view source on GitHub ↗

Dispatcher implements an event dispatcher.

Source from the content-addressed store, hash-verified

15
16// Dispatcher implements an event dispatcher.
17type Dispatcher struct {
18 evmap map[string][]subscription // Map of event names to subscription lists
19}
20
21// Callback is the type for Dispatcher callback functions.
22type Callback func(string, interface{})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected