func WithURL(u string) Option {
	return optionFn(func(h *healthClient) error {
		if u != "" {
			if _, err := url.ParseRequestURI(u); err != nil {
				return err
			}
		}
		h.url = u
		return nil
	})
}
WithURL is a setter to override the default base url for a node. This overrides the WithPort option.
package health
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"github.com/m3db/m3db-operator/pkg/k8sops/m3db"
	"github.com/m3db/m3db-operator/pkg/m3admin"
)
const (
	healthPath      = "/health"
	m3dbServiceName = "m3dbnode-m3-cluster-short"
)
type healthClient struct {
	client m3admin.Client
	url    string
	port   int
}
type Option interface {
	execute(*healthClient) error
}
type optionFn func(h *healthClient) error
func (fn optionFn) execute(h *healthClient) error {
	return fn(h)
}