hasJSONRPCHTTP returns true if the service has non-streaming JSON-RPC endpoints.
(svc *expr.HTTPServiceExpr)
| 187 | |
| 188 | // hasJSONRPCHTTP returns true if the service has non-streaming JSON-RPC endpoints. |
| 189 | func hasJSONRPCHTTP(svc *expr.HTTPServiceExpr) bool { |
| 190 | for _, e := range svc.HTTPEndpoints { |
| 191 | if e.IsJSONRPC() && !e.MethodExpr.IsStreaming() { |
| 192 | return true |
| 193 | } |
| 194 | } |
| 195 | return false |
| 196 | } |
| 197 | |
| 198 | // hasMixedJSONRPCTransports returns true if the service has both HTTP and SSE JSON-RPC endpoints. |
| 199 | func hasMixedJSONRPCTransports(svc *expr.HTTPServiceExpr, data *httpcodegen.ServicesData) bool { |
no test coverage detected