GRPCResponseExpr defines a gRPC response including its status code, result type, and metadata.
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected