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

Struct ServiceExpr

expr/service.go:12–37  ·  view source on GitHub ↗

ServiceExpr describes a set of related methods.

Source from the content-addressed store, hash-verified

10type (
11 // ServiceExpr describes a set of related methods.
12 ServiceExpr struct {
13 // DSLFunc contains the DSL used to initialize the expression.
14 eval.DSLFunc
15 // Name of service.
16 Name string
17 // Description of service used in documentation.
18 Description string
19 // Docs points to external documentation
20 Docs *DocsExpr
21 // Methods is the list of service methods.
22 Methods []*MethodExpr
23 // Errors list the errors common to all the service methods.
24 Errors []*ErrorExpr
25 // Requirements contains the security requirements that apply to
26 // all the service methods. One requirement is composed of
27 // potentially multiple schemes. Incoming requests must validate
28 // at least one requirement to be authorized.
29 Requirements []*SecurityExpr
30 // ClientInterceptors is the list of client interceptors.
31 ClientInterceptors []*InterceptorExpr
32 // ServerInterceptors is the list of server interceptors.
33 ServerInterceptors []*InterceptorExpr
34 // Meta is a set of key/value pairs with semantic that is
35 // specific to each generator.
36 Meta MetaExpr
37 }
38
39 // ErrorExpr defines an error response. It consists of a named
40 // attribute.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected