MCPcopy
hub / github.com/hwholiday/learning_tools / HEventBus

Struct HEventBus

hevent/event.go:13–16  ·  view source on GitHub ↗

一个topic 可以有多个消费者

Source from the content-addressed store, hash-verified

11type HEventDataArray []HEventData //一个topic 可以有多个消费者
12
13type HEventBus struct {
14 sub map[string]HEventDataArray
15 rm sync.RWMutex
16}
17
18var h *HEventBus
19

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected