codeword/vendor/github.com/grpc-ecosystem/go-grpc-middleware/recovery/doc.go
2024-08-27 22:09:10 +03:00

16 lines
424 B
Go

// Copyright 2017 David Ackroyd. All Rights Reserved.
// See LICENSE for licensing terms.
/*
`grpc_recovery` are interceptors that recover from gRPC handler panics.
Server Side Recovery Middleware
By default a panic will be converted into a gRPC error with `code.Internal`.
Handling can be customised by providing an alternate recovery function.
Please see examples for simple examples of use.
*/
package grpc_recovery