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

Function ServerInterceptor

dsl/interceptor.go:264–266  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

262// // ... rest of the method DSL
263// })
264func 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.

Calls 1

addInterceptorsFunction · 0.85

Tested by 1

TestServerInterceptorFunction · 0.68