zap

package
v1.124.9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Unlicense Imports: 7 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 zap.

func NewConsumer added in v1.106.0

func NewConsumer(topic, channel string, logger *zap.Logger, handler nsq.Consumer) *Consumer

NewConsumer for zap.

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 zap.

func NewProducer

func NewProducer(logger *zap.Logger, producer nsq.Producer) *Producer

NewProducer for zap.

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