ClientInterceptor lists the client-side interceptors that apply to all the API endpoints, all the service endpoints or a specific endpoint. ClientInterceptor must appear in an API, Service or Method expression. ClientInterceptor accepts one or more interceptor or interceptor names as arguments. Cl
(interceptors ...any)
| 295 | // // ... rest of the method DSL |
| 296 | // }) |
| 297 | func ClientInterceptor(interceptors ...any) { |
| 298 | addInterceptors(interceptors, true) |
| 299 | } |
| 300 | |
| 301 | // setInterceptorAttribute is a helper function that handles the common logic for |
| 302 | // setting interceptor attributes (ReadPayload, WritePayload, ReadResult, WriteResult, ReadStreamingPayload, WriteStreamingPayload, ReadStreamingResult, WriteStreamingResult). |