zap

package
v1.86.24 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	handler.Handler
	// contains filtered or unexported fields
}

Handler for zap.

func NewHandler

func NewHandler(params HandlerParams) *Handler

NewHandler for zap.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, message *message.Message) error

type HandlerParams added in v1.65.0

type HandlerParams struct {
	Topic, Channel string
	Logger         *zap.Logger
	Handler        handler.Handler
}

HandlerParams for zap.

type Producer

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

Producer for zap.

func NewProducer

func NewProducer(params ProducerParams) *Producer

NewProducer for zap.

func (*Producer) Publish

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

type ProducerParams added in v1.65.0

type ProducerParams struct {
	Logger   *zap.Logger
	Producer producer.Producer
}

ProducerParams for zap.

Jump to

Keyboard shortcuts

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