fetcher/fetcher_github.go
func (h *Github) Init() error {
	//apply defaults
	if h.User == "" {
		return fmt.Errorf("User required")
	}
	if h.Repo == "" {
		return fmt.Errorf("Repo required")
	}
	if h.Asset == nil {
		h.Asset = h.defaultAsset
	}
	h.releaseURL = "https://api.github.com/repos/" + h.User + "/" + h.Repo + "/releases/latest"
	if h.Interval == 0 {
		h.Interval = 5 * time.Minute
	} else if h.Interval < 1*time.Minute {
		log.Printf("[overseer.github] warning: intervals less than 1 minute will surpass the public rate limit")
	}
	return nil
}
func (h *Github) Init() error {
	//apply defaults
	if h.User == "" {
		return fmt.Errorf("User required")
	}
	if h.Repo == "" {
		return fmt.Errorf("Repo required")
	}
	if h.Asset == nil {
		h.Asset = h.defaultAsset
	}
	h.releaseURL = "https://api.github.com/repos/" + h.User + "/" + h.Repo + "/releases/latest"
	if h.Interval == 0 {
		h.Interval = 5 * time.Minute
	} else if h.Interval < 1*time.Minute {
		log.Printf("[overseer.github] warning: intervals less than 1 minute will surpass the public rate limit")
	}
	return nil
}
// Init validates the provided config