Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProducer ¶
func NewProducer(params ProducerParams) (producer.Producer, error)
NewProducer for NSQ. nolint:ireturn
func RegisterConsumer ¶
func RegisterConsumer(params ConsumerParams) error
RegisterConsumer for NSQ.
Types ¶
type ConsumerParams ¶
type ConsumerParams struct { Lifecycle fx.Lifecycle Config *Config Logger *zap.Logger Topic string Channel string Tracer opentracing.Tracer Handler handler.Handler Compressor compressor.Compressor Marshaller marshaller.Marshaller }
ConsumerParams for NSQ.
type ProducerParams ¶
type ProducerParams struct { Lifecycle fx.Lifecycle Config *Config Logger *zap.Logger Tracer opentracing.Tracer Compressor compressor.Compressor Marshaller marshaller.Marshaller }
ProducerParams for NSQ.
Click to show internal directories.
Click to hide internal directories.