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

Function hasMixedJSONRPCTransports

jsonrpc/codegen/server.go:199–201  ·  view source on GitHub ↗

hasMixedJSONRPCTransports returns true if the service has both HTTP and SSE JSON-RPC endpoints.

(svc *expr.HTTPServiceExpr, data *httpcodegen.ServicesData)

Source from the content-addressed store, hash-verified

197
198// hasMixedJSONRPCTransports returns true if the service has both HTTP and SSE JSON-RPC endpoints.
199func hasMixedJSONRPCTransports(svc *expr.HTTPServiceExpr, data *httpcodegen.ServicesData) bool {
200 return hasJSONRPCHTTP(svc) && hasJSONRPCSSE(svc, data)
201}

Callers 1

serverFileFunction · 0.85

Calls 2

hasJSONRPCHTTPFunction · 0.85
hasJSONRPCSSEFunction · 0.85

Tested by

no test coverage detected