github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-grpc-middleware/recovery/doc.go (about) 1 // Copyright 2017 David Ackroyd. All Rights Reserved. 2 // See LICENSE for licensing terms. 3 4 /* 5 `grpc_recovery` are intereceptors that recover from gRPC handler panics. 6 7 Server Side Recovery Middleware 8 9 By default a panic will be converted into a gRPC error with `code.Internal`. 10 11 Handling can be customised by providing an alternate recovery function. 12 13 Please see examples for simple examples of use. 14 */ 15 package grpc_recovery