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

Struct GRPCResponseExpr

expr/grpc_response.go:12–28  ·  view source on GitHub ↗

GRPCResponseExpr defines a gRPC response including its status code, result type, and metadata.

Source from the content-addressed store, hash-verified

10 // GRPCResponseExpr defines a gRPC response including its status code, result
11 // type, and metadata.
12 GRPCResponseExpr struct {
13 // gRPC status code
14 StatusCode int
15 // Response description
16 Description string
17 // Response Message if any
18 Message *AttributeExpr
19 // Parent expression, one of EndpointExpr, ServiceExpr or
20 // RootExpr.
21 Parent eval.Expression
22 // Headers is the header metadata to be sent in the gRPC response.
23 Headers *MappedAttributeExpr
24 // Trailers is the trailer metadata to be sent in the gRPC response.
25 Trailers *MappedAttributeExpr
26 // Meta is a list of key/value pairs.
27 Meta MetaExpr
28 }
29)
30
31// EvalName returns the generic definition name used in error messages.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected