WithUnaryInterceptors adds gRPC unary interceptors
(interceptors ...grpc.UnaryServerInterceptor)
| 98 | |
| 99 | // WithUnaryInterceptors adds gRPC unary interceptors |
| 100 | func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option { |
| 101 | return func(o *options) { |
| 102 | o.unaryInterceptors = append(o.unaryInterceptors, interceptors...) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // WithTrustedProxies adds trusted proxies from which proxy headers are trusted. |
| 107 | func WithTrustedProxies(cidrs ...string) Option { |
no outgoing calls