Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogger ¶
DefaultLogger creates the default, minimal setup if a no logger is passed to the middleware when setup
Types ¶
type Middleware ¶
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
Click to show internal directories.
Click to hide internal directories.