Documentation ¶
Index ¶
- func ClientErrorInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func ClientLogInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func ServerAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ServerErrorInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ServerLogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ServerMetaInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientErrorInterceptor ¶
func ClientErrorInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption, ) error
func ClientLogInterceptor ¶
func ClientLogInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption, ) error
func ServerAuthInterceptor ¶
func ServerAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func ServerErrorInterceptor ¶
func ServerErrorInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
ServerErrorInterceptor transfer a error to status error, It must be the first server interceptor.
func ServerLogInterceptor ¶
func ServerLogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func ServerMetaInterceptor ¶
func ServerMetaInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
输出请求的元数据,方便其他rpc服务获取
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.