aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/grpc/interceptor.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/grpc/interceptor.go')
-rw-r--r--vendor/google.golang.org/grpc/interceptor.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/google.golang.org/grpc/interceptor.go b/vendor/google.golang.org/grpc/interceptor.go
index 06dc825..8b73500 100644
--- a/vendor/google.golang.org/grpc/interceptor.go
+++ b/vendor/google.golang.org/grpc/interceptor.go
@@ -19,7 +19,7 @@
19package grpc 19package grpc
20 20
21import ( 21import (
22 "golang.org/x/net/context" 22 "context"
23) 23)
24 24
25// UnaryInvoker is called by UnaryClientInterceptor to complete RPCs. 25// UnaryInvoker is called by UnaryClientInterceptor to complete RPCs.
@@ -48,7 +48,9 @@ type UnaryServerInfo struct {
48} 48}
49 49
50// UnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal 50// UnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal
51// execution of a unary RPC. 51// execution of a unary RPC. If a UnaryHandler returns an error, it should be produced by the
52// status package, or else gRPC will use codes.Unknown as the status code and err.Error() as
53// the status message of the RPC.
52type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error) 54type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error)
53 55
54// UnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info 56// UnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info