Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger( ctx context.Context, subscriber *natsx.Subscriber, handler natsx.SubscriberHandler, ) error
Logger is a middleware that logs the current result from request.
func Recover ¶
func Recover() natsx.SubscriberInterceptor
Recover is a middleware that recovers server from panic. Recover also dumps stack trace on panic occurrence.
func RequestID ¶ added in v1.1.0
func RequestID( ctx context.Context, subscriber *natsx.Subscriber, handler natsx.SubscriberHandler, ) error
RequestID is a middleware that inject request id to the context if it doesn't exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.