interceptor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(
	ctx context.Context,
	subscriber *natsx.SubscriberImpl,
	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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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