func New(updateFn func(), updateLock chan bool) *Handler {
	if updateLock != nil {
		lock = updateLock
	} else {
		lock = make(chan bool, 1)
		lock <- true
	}
	return &Handler{
		fn:   updateFn,
		Path: "/v1/update",
	}
}
New is a factory function creating a new  Handler instance
package update
import (
	"io"
	"net/http"
	"os"
	log "github.com/sirupsen/logrus"
)
var (
	lock chan bool
)