panichandler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingStreamPanicHandler

func LoggingStreamPanicHandler(logger log.FieldLogger) grpc.StreamServerInterceptor

LoggingStreamPanicHandler returns a stream server interceptor which recovers panics, logs them as errors with logger, and returns a gRPC internal error to clients.

func LoggingUnaryPanicHandler

func LoggingUnaryPanicHandler(logger log.FieldLogger) grpc.UnaryServerInterceptor

LoggingUnaryPanicHandler returns a server interceptor which recovers panics, logs them as errors with logger, and returns a gRPC internal error to clients.

Types

This section is empty.

Jump to

Keyboard shortcuts

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