nsqd

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageHandler

func NewMessageHandler(consumer defs.IConsumer, provider opentelemetry.OpenTelemetryIOCInterface, dbFactory uorm.DBFactoryIOCInterface) nsq.Handler

Types

type NsqProducer

type NsqProducer struct {
	OpenTelemetry opentelemetry.OpenTelemetryIOCInterface `singleton:""`
	// contains filtered or unexported fields
}

func GetNsqProducerSingleton

func GetNsqProducerSingleton() (*NsqProducer, error)

func (*NsqProducer) CreatePublisher

func (n *NsqProducer) CreatePublisher(producerAddr string) (bool, error)

func (*NsqProducer) Publish

func (n *NsqProducer) Publish(ctx context.Context, topic string, body []byte) (err error)

type NsqProducerIOCInterface

type NsqProducerIOCInterface interface {
	CreatePublisher(producerAddr string) (bool, error)
	Publish(ctx contextx.Context, topic string, body []byte) (err error)
}

func GetNsqProducerIOCInterfaceSingleton

func GetNsqProducerIOCInterfaceSingleton() (NsqProducerIOCInterface, error)

type ThisNsqProducer

type ThisNsqProducer struct {
}

func (*ThisNsqProducer) This

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL