chainclientinterceptors.go 503 B

12345678910111213
  1. package internal
  2. import "google.golang.org/grpc"
  3. // WithStreamClientInterceptors uses given client stream interceptors.
  4. func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption {
  5. return grpc.WithChainStreamInterceptor(interceptors...)
  6. }
  7. // WithUnaryClientInterceptors uses given client unary interceptors.
  8. func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption {
  9. return grpc.WithChainUnaryInterceptor(interceptors...)
  10. }