package
Version:
v1.1.9
Opens a new window with list of versions in this module.
Published: Jul 4, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Convert 内部转换,为了让err=nil的时候,监控数据里有OK信息
GrpcToHTTPStatusCode gRPC转HTTP Code
example:
spbStatus := status.FromContextError(err)
httpStatusCode := ecode.GrpcToHTTPStatusCode(spbStatus.Code())
Source Files
¶
Click to show internal directories.
Click to hide internal directories.