Skip to content

Cleanup usages of resolver.Target.Endpoint #5796

@easwars

Description

@easwars

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions