-
Notifications
You must be signed in to change notification settings - Fork 69
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
Go: Implement Custom Command with route(Generic Cluster cmd), Ping with Route #2979
Go: Implement Custom Command with route(Generic Cluster cmd), Ping with Route #2979
Conversation
Signed-off-by: Niharika Bhavaraju <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed API naming with the team and agreed to follow approach we started with node client. If command have optional argument, we wrap them with options
struct and provide 2 APIs: cmd
and cmdWithOptions
.
Currently PING has 2 optional arguments and 4 APIs (4 permutations):
Ping
PingWithMessage
PingWithRoute
PingWithMessageAndRoute
Imagine PING
gets a new optional argument later in future. Current solution is not scalable. So the proposal is to refactor it now into the following:
Ping
PingWithOptions
And follow that approach for all commands.
If you have any concerns, please, share. I'm happy to discuss that there or in a GLIDE contribution meeting.
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please split into 2 PRs and rework ping options
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
…alkey-glide into pingcommand-niharika
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
…alkey-glide into pingcommand-niharika
Signed-off-by: Niharika Bhavaraju <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last minor doc updates
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Go: Implement Custom Command with route(Generic Cluster cmd), Ping with Route