Documentation ¶
Index ¶
Constants ¶
View Source
const (
OPERATE_LOG_TOPIC = "log.operate"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
发布者
func NewPublisher ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
订阅者 应该放在那里启动, 服务启动的时候就启动
func NewSubscriber ¶
func NewSubscriber(addr []string) *Subscriber
Click to show internal directories.
Click to hide internal directories.