Resource.WithUrlForEndpoint
Method
func (Resource) WithUrlForEndpoint( endpointName string, callback func(obj *ResourceUrlAnnotation),) ResourceSignature
method
WithUrlForEndpoint builderRegisters a callback to update the URL displayed for the endpoint with the specified name.
WithUrlForEndpoint( endpointName string, callback func(obj *ResourceUrlAnnotation),) ResourceParameters
endpointName stringThe name of the endpoint to customize the URL for.callbackfunc(obj *ResourceUrlAnnotation) callbackThe callback that will customize the URL.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Defined on
A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.
Applies to
This function applies to the following types: