-
Notifications
You must be signed in to change notification settings - Fork 14
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
Initial client #4
Initial client #4
Conversation
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.
Added a few comments, will look more detailed later.
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
func main() { | ||
// ******************************************************************************** |
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 like this style of comment... it provides good visual blocking.
} | ||
|
||
// NewNSMClient - creates a client connection to NSMGr | ||
func NewNSMClient(ctx context.Context, rootConf *config.Config) networkservice.NetworkServiceClient { |
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 really like NewNSMClient being here in main.go ... it makes it easy to see in one place what you are doing, but breaks things up nicely. It’s a good compromise.
Initial client and environment variables to use.
Signed-off-by: Andrey Sobolev haiodo@gmail.com