zap

package
v1.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.32.3

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

Handler for zap.

func NewHandler

func NewHandler(topic, channel string, logger *zap.Logger, h handler.Handler) *Handler

NewHandler for zap.

func (*Handler) Handle added in v1.32.3

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

type Producer added in v1.32.3

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

Producer for zap.

func NewProducer

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

NewProducer for zap.

func (*Producer) Publish added in v1.32.3

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

Jump to

Keyboard shortcuts

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