-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Debug Operation #33
base: main
Are you sure you want to change the base?
Conversation
Hi:) currently the Execute() returns a DebugClient. |
For the |
@greg-dennis WDYT? |
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.
I'm not involved in the project anymore, so I don't have any kind of meaningful say over this. I made a few small comments and overall it looks alright, but you'll have to leave it to the people who are involved to say for sure.
@@ -0,0 +1,81 @@ | |||
// Copyright 2023 Google LLC |
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.
2024
@@ -70,6 +72,7 @@ type Clients interface { | |||
OTDR() otpb.OTDRClient | |||
System() spb.SystemClient | |||
WavelengthRouter() wrpb.WavelengthRouterClient | |||
DEBUG() dbgpb.DebugClient |
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.
Should just be stylized as "Debug" not "DEBUG" because it isn't an intiailism.
@@ -112,3 +114,8 @@ func (c *Clients) System() spb.SystemClient { | |||
func (c *Clients) WavelengthRouter() wrpb.WavelengthRouterClient { | |||
return c.WavelengthRouterClient | |||
} | |||
|
|||
// Debug returns the client for gNOI Debug service. | |||
func (c *Clients) DEBUG() dbgpb.DebugClient { |
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.
"DEBUG" -> "Debug"
|
||
// Mode the commands will be executed in. | ||
// | ||
// enum Mode { |
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.
Putting the full enum in the comment creates a double-maintenance burden. I'd just let people look it up in the proto.
@dplore Are you the current maintainer of this project? |
@prinikasn may you can assist? |
gNOI Debug operation