Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openrpc based api #2371

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

openrpc based api #2371

wants to merge 3 commits into from

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
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