Skip to content

Conversation

Omarabdul3ziz
Copy link
Contributor

@Omarabdul3ziz Omarabdul3ziz commented Jul 2, 2024

Pr contains

  • openrpc spec file that represents all zos endpoints and their types.
  • a simple tool that generates go code based on this specs
  • a service that runs jsonrpc protocol serving all zos endpoints using net/rpc package

Internal modifications:

  • seperate the perf task getters to have a method for each task with a
    defined result type instead of interface{}
  • modify healthcheck task to have its result as slice of object
    containes the check name instead of map from name to error
  • modify public ip task to have its result as slice of reports with the
    ip included instead of map from the ip to report
  • update performance monitor stub
  • modify the diagnositcs response to be slice of modules status instead
    of map

Related issues

- create openrpc.json spec file that represent all zos types and api
  handlers
- create a tool that generate go types/methods from the spec file with
  the limitation for the `net/rpc` package services
- seperate the perf task getters to have a method for each task with a
  defined result type instead of interface{}
- modify healthcheck task to have its result as slice of object
  containes the check name instead of map from name to error
- modify public ip task to have its result as slice of reports with the
  ip included instead of map from the ip to report
- update performance monitor stub
- modify the diagnositcs response to be slice of modules status instead
  of map
@Omarabdul3ziz Omarabdul3ziz changed the title wip: openrpc based api openrpc based api Jul 17, 2024
@Omarabdul3ziz
Copy link
Contributor Author

close for threefoldtech/zosbase#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant