Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventHandler ¶ added in v0.3.4
EventHandler is used to process messages via a subscription of a topic.
type Subscriber ¶
type Subscriber interface {
Sub(topic string, h EventHandler) error
}
Subscriber 订阅事件
Click to show internal directories.
Click to hide internal directories.