hasJSONRPCEndpoints returns true if the service has JSON-RPC endpoints.
(root *expr.RootExpr, data *service.Data)
| 170 | |
| 171 | // hasJSONRPCEndpoints returns true if the service has JSON-RPC endpoints. |
| 172 | func hasJSONRPCEndpoints(root *expr.RootExpr, data *service.Data) bool { |
| 173 | for _, svc := range root.API.JSONRPC.Services { |
| 174 | if svc.Name() == data.Name { |
| 175 | return true |
| 176 | } |
| 177 | } |
| 178 | return false |
| 179 | } |