MCPcopy Create free account
hub / github.com/goadesign/goa / ClientInterceptor

Function ClientInterceptor

dsl/interceptor.go:297–299  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

295// // ... rest of the method DSL
296// })
297func 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).

Callers 6

dsls.goFile · 0.85
TestClientInterceptorFunction · 0.85
service_dsls.goFile · 0.85

Calls 1

addInterceptorsFunction · 0.85

Tested by 1

TestClientInterceptorFunction · 0.68