MCPcopy Create free account
hub / github.com/MacroPower/kat / SendEvent

Method SendEvent

pkg/command/static.go:113–115  ·  view source on GitHub ↗

SendEvent allows external components to send events to all listeners.

(evt Event)

Source from the content-addressed store, hash-verified

111
112// SendEvent allows external components to send events to all listeners.
113func (rg *Static) SendEvent(evt Event) {
114 rg.broadcast(evt)
115}
116
117func (rg *Static) RunPlugin(_ string) Output {
118 return rg.RunPluginContext(context.Background(), "")

Callers

nothing calls this directly

Calls 1

broadcastMethod · 0.95

Tested by

no test coverage detected