IsJSONRPC returns true if the endpoint is a JSON-RPC endpoint.
()
| 126 | |
| 127 | // IsJSONRPC returns true if the endpoint is a JSON-RPC endpoint. |
| 128 | func (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. |
| 134 | func (e *HTTPEndpointExpr) HasAbsoluteRoutes() bool { |
no outgoing calls