recover

package
v0.0.0-...-745208b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This package implements a middleware that will recover from panics, it also logs when some error occurr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamInterceptor

func StreamInterceptor(log grpclog.LoggerV2) grpc.StreamServerInterceptor

StreamInterceptor implements a gRPC middleware that allows the server to recover from a gRPC panic

func UnaryInterceptor

func UnaryInterceptor(log grpclog.LoggerV2) grpc.UnaryServerInterceptor

UnaryInterceptor implements a gRPC middleware that allows the server to recover from a gRPC panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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