|
12345678910111213 |
- package rpc
-
- import (
- "context"
- "egg-im/pkg/gerrors"
-
- "google.golang.org/grpc"
- )
-
- func interceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
- err := invoker(ctx, method, req, reply, cc, opts...)
- return gerrors.WrapRPCError(err)
- }
|