Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
*nsq.Consumer
Conf ConsumerConfig
}
type ConsumerConfig ¶
type ConsumerConfig struct {
NSQLookupdAddrs []string
NSQdAddrs []string
Topic string
Channel string
*nsq.Config
}
func (*ConsumerConfig) AfterInject ¶
func (c *ConsumerConfig) AfterInject()
AfterInject is a no-op satisfying the Config interface.
func (*ConsumerConfig) BeforeInject ¶
func (c *ConsumerConfig) BeforeInject()
BeforeInject is a no-op satisfying the Config interface.
func (*ConsumerConfig) Build ¶
func (c *ConsumerConfig) Build() (*nsq.Consumer, error)
Build creates an NSQ consumer and connects it to configured lookupd/nsqd addresses.
func (*ConsumerConfig) Init ¶
func (c *ConsumerConfig) Init()
Init is a no-op placeholder for future default initialization.
type Producer ¶
type Producer struct {
*nsq.Producer
Conf ProducerConfig
}
type ProducerConfig ¶
func (*ProducerConfig) AfterInject ¶
func (c *ProducerConfig) AfterInject()
AfterInject is a no-op satisfying the Config interface.
func (*ProducerConfig) BeforeInject ¶
func (c *ProducerConfig) BeforeInject()
BeforeInject is a no-op satisfying the Config interface.
func (*ProducerConfig) Build ¶
func (c *ProducerConfig) Build() (*nsq.Producer, error)
Build creates an NSQ producer connected to the configured address.
func (*ProducerConfig) Init ¶
func (c *ProducerConfig) Init()
Init is a no-op placeholder for future default initialization.
Click to show internal directories.
Click to hide internal directories.