Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NsqConsumerConfig ¶
type NsqProducerService ¶
func NewNsqProducerService ¶
func NewNsqProducerService(c *NsqProducerServiceConfig) *NsqProducerService
创建一个新的nsq服务
func (*NsqProducerService) Stop ¶
func (nps *NsqProducerService) Stop()
type NsqProducerServiceConfig ¶
type NsqProducerServiceConfig struct { Addr string // nsq地址 OnStart func(*NsqProducerService) // 启动的回调 }
Click to show internal directories.
Click to hide internal directories.