Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallPanicHandler ¶
func InstallPanicHandler(handler PanicHandler)
InstallPanicHandler installs additional crash handles for dealing with a panic
func StreamPanicHandler ¶
func StreamPanicHandler(logger log.Logger) grpc.StreamServerInterceptor
StreamPanicHandler creates a new stream server interceptor that handles panics.
func UnaryPanicHandler ¶
func UnaryPanicHandler(logger log.Logger) grpc.UnaryServerInterceptor
UnaryPanicHandler creates a new unary server interceptor that handles panics.
Types ¶
type PanicHandler ¶
type PanicHandler func(methodName string, error interface{})
PanicHandler is a handler that will be called on a grpc panic
Click to show internal directories.
Click to hide internal directories.