WithUnaryInterceptor returns a DialOption that specifies the interceptor for unary RPCs.
(f UnaryClientInterceptor)
| 585 | // WithUnaryInterceptor returns a DialOption that specifies the interceptor for |
| 586 | // unary RPCs. |
| 587 | func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption { |
| 588 | return newFuncDialOption(func(o *dialOptions) { |
| 589 | o.unaryInt = f |
| 590 | }) |
| 591 | } |
| 592 | |
| 593 | // WithChainUnaryInterceptor returns a DialOption that specifies the chained |
| 594 | // interceptor for unary RPCs. The first interceptor will be the outer most, |