metrics

package
v1.123.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v1.106.0

type Consumer struct {
	nsq.Consumer
	// contains filtered or unexported fields
}

Consumer for metrics.

func NewConsumer added in v1.106.0

func NewConsumer(topic, channel string, meter metric.Meter, handler nsq.Consumer) (*Consumer, error)

NewConsumer for metrics.

func (*Consumer) Consume added in v1.106.0

func (h *Consumer) Consume(ctx context.Context, message *nsq.Message) error

type Producer

type Producer struct {
	nsq.Producer
	// contains filtered or unexported fields
}

Producer for metrics.

func NewProducer

func NewProducer(meter metric.Meter, producer nsq.Producer) (*Producer, error)

NewProducer for metrics.

func (*Producer) Produce added in v1.106.0

func (p *Producer) Produce(ctx context.Context, topic string, message *nsq.Message) error

Jump to

Keyboard shortcuts

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