Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientErrorInterceptor ¶
func ClientErrorInterceptor() grpc.UnaryClientInterceptor
ClientErrorInterceptor 自定义拦截器用于捕捉 gRPC 调用中的错误,将 gRPC 错误状态转换为自定义的错误代码(xcode)格式
func ServerErrorInterceptor ¶
func ServerErrorInterceptor() grpc.UnaryServerInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.