func (h *HTTP) Init() error {
	//apply defaults
	if h.URL == "" {
		return fmt.Errorf("URL required")
	}
	h.lasts = map[string]string{}
	if h.Interval == 0 {
		h.Interval = 5 * time.Minute
	}
	if h.CheckHeaders == nil {
		h.CheckHeaders = defaultHTTPCheckHeaders
	}
	return nil
}
func (h *HTTP) Init() error {
	
	if h.URL == "" {
		return fmt.Errorf("URL required")
	}
	h.lasts = map[string]string{}
	if h.Interval == 0 {
		h.Interval = 5 * time.Minute
	}
	if h.CheckHeaders == nil {
		h.CheckHeaders = defaultHTTPCheckHeaders
	}
	return nil
}
func ( h * HTTP ) Init ( ) error { //apply defaults if h . URL == " " { return fmt . Errorf ( " " ) } h . lasts = map [ string ] string { } if h . Interval == 0 { h . Interval = 5 * time . Minute } if h . CheckHeaders == nil { h . CheckHeaders = defaultHTTPCheckHeaders } return nil }
// Init validates the provided config
Init validates the provided config