//
pkg.gl
Category
github.com/donetkit/contrib-gin
grpc_middleware
grpc_prom
grpcstatus
package
0.4.3
Repository:
https://github.com/donetkit/contrib-gin.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
1
Files
60 SLOC
#
Functions
FromError
Since error can be wrapped and the `FromError` function only checks for `GRPCStatus` function and as a fallback uses the `Unknown` gRPC status we need to unwrap the error if possible to get the original status.