chainclientinterceptors.go 363 B

1234567891011
  1. package internal
  2. import "google.golang.org/grpc"
  3. func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption {
  4. return grpc.WithChainStreamInterceptor(interceptors...)
  5. }
  6. func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption {
  7. return grpc.WithChainUnaryInterceptor(interceptors...)
  8. }