WithStreamInterceptors adds gRPC stream interceptors
(interceptors ...grpc.StreamServerInterceptor)
| 91 | |
| 92 | // WithStreamInterceptors adds gRPC stream interceptors |
| 93 | func WithStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) Option { |
| 94 | return func(o *options) { |
| 95 | o.streamInterceptors = append(o.streamInterceptors, interceptors...) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // WithUnaryInterceptors adds gRPC unary interceptors |
| 100 | func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option { |
no outgoing calls