pubsubzap

package
v0.0.0-...-d1c628d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *zap.Logger

DefaultLogger creates the default, minimal setup if a no logger is passed to the middleware when setup

Types

type Middleware

type Middleware struct {
	Logger *zap.Logger
}

Middleware is middleware for zap logging

func (Middleware) PublisherMsgInterceptor

func (o Middleware) PublisherMsgInterceptor(serviceName string, next pubsub.PublishHandler) pubsub.PublishHandler

PublisherMsgInterceptor add logging to the publisher

func (Middleware) SubscribeInterceptor

func (o Middleware) SubscribeInterceptor(opts pubsub.HandlerOptions, next pubsub.MsgHandler) pubsub.MsgHandler

SubscribeInterceptor returns a subscriber middleware with added logging via Zap

Jump to

Keyboard shortcuts

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