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

Method IsJSONRPC

expr/http_endpoint.go:128–131  ·  view source on GitHub ↗

IsJSONRPC returns true if the endpoint is a JSON-RPC endpoint.

()

Source from the content-addressed store, hash-verified

126
127// IsJSONRPC returns true if the endpoint is a JSON-RPC endpoint.
128func (e *HTTPEndpointExpr) IsJSONRPC() bool {
129 _, ok := e.Meta["jsonrpc"]
130 return ok
131}
132
133// HasAbsoluteRoutes returns true if all the endpoint routes are absolute.
134func (e *HTTPEndpointExpr) HasAbsoluteRoutes() bool {

Callers 13

ValidateMethod · 0.95
FinalizeMethod · 0.95
validateTransportsMethod · 0.80
prepareJSONRPCRoutesMethod · 0.80
validateJSONRPCRoutesMethod · 0.80
buildPayloadDataMethod · 0.80
buildResultDataMethod · 0.80
routeFunction · 0.80
hasJSONRPCSSEFunction · 0.80
hasJSONRPCHTTPFunction · 0.80

Calls

no outgoing calls

Tested by 1