resolver.Target.Endpoint is marked as deprecated, and we added resolver.Target.URL which is the more preferred way of getting to the details of the parsed target.
We should add a helper function to retrieve the endpoint from a given resolver.Target. Something like:
func (t resolver.Target) ToEndpoint() string {
if target.URL.Path == "" {
return target.URL.Opaque
}
return target.URL.Path
}
Codebase needs to be inspected for usages of resolver.Target.Endpoint and replaced with the above helper function.