-
Notifications
You must be signed in to change notification settings - Fork 36
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
Rework nsmlabels to nsurl. #693
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.
I like this idea
f5c2db6
to
3095d8a
Compare
pkg/tools/nsurl/nsurl.go
Outdated
) | ||
|
||
// NSURL - wrapper around *url.URL to allow easy extraction of NSM related information | ||
type NSURL struct { |
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.
Also, we can define a type based on another type.
For example:
type NSURL struct { | |
type NSURL url.URL |
In this case, we could use a typecast to covert url.URL
to NSURL
or vise versa.
That means L43-L47 in this case can be removed.
This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com>
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.
@edwarnicke Nice!
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k@master networkservicemesh/sdk#693 networkservicemesh/sdk PR link: networkservicemesh/sdk#693 networkservicemesh/sdk commit message: commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a Author: Ed Warnicke <hagbard@gmail.com> Date: Tue Feb 2 15:10:17 2021 -0600 Rework nsmlabels to nsurl. (#693) This is mostly just a reworking of the style of the approach, but it does have a fix for handling interdomain network services Signed-off-by: Ed Warnicke <hagbard@gmail.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
No description provided.