ServerInterceptor lists the server-side interceptors that apply to all the API endpoints, all the service endpoints or a specific endpoint. ServerInterceptor must appear in an API, Service or Method expression. ServerInterceptor accepts one or more interceptor or interceptor names as arguments. Se
(interceptors ...any)
| 262 | // // ... rest of the method DSL |
| 263 | // }) |
| 264 | func ServerInterceptor(interceptors ...any) { |
| 265 | addInterceptors(interceptors, false) |
| 266 | } |
| 267 | |
| 268 | // ClientInterceptor lists the client-side interceptors that apply to all the |
| 269 | // API endpoints, all the service endpoints or a specific endpoint. |