Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NsqMessageSerialize ¶
type NsqProducer ¶
type NsqProducer struct {
// contains filtered or unexported fields
}
func FromEnv ¶
func FromEnv() (*NsqProducer, error)
func New ¶
func New(opts ProducerOpts) (*NsqProducer, error)
func (*NsqProducer) DeferredPublish ¶
func (p *NsqProducer) DeferredPublish(ctx context.Context, topic string, delay int64, message NsqMessageSerialize) error
func (*NsqProducer) Ping ¶
func (p *NsqProducer) Ping() error
func (*NsqProducer) Publish ¶
func (p *NsqProducer) Publish(ctx context.Context, topic string, message NsqMessageSerialize) error
func (*NsqProducer) Stop ¶
func (p *NsqProducer) Stop()
type ProducerOpts ¶
type WithLoggableFields ¶
Directories ¶
Path | Synopsis |
---|---|
Package nsqproducermock is a generated GoMock package.
|
Package nsqproducermock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.