Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct{}
Middleware provides passing on the audit user for pubsub
func (Middleware) PublisherMsgInterceptor ¶
func (o Middleware) PublisherMsgInterceptor(serviceName string, next pubsub.PublishHandler) pubsub.PublishHandler
PublisherMsgInterceptor inserts audit user into pubsub metadata
func (Middleware) SubscribeInterceptor ¶
func (o Middleware) SubscribeInterceptor(opts pubsub.HandlerOptions, next pubsub.MsgHandler) pubsub.MsgHandler
SubscribeInterceptor returns a subscriber middleware with context of an audit user
Click to show internal directories.
Click to hide internal directories.