func (s *server) Ready(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
	if cfg.GetBool("enable_kvstore") {
		err := kv.HealthCheck()
		if err != nil {
			w.WriteHeader(http.StatusServiceUnavailable)
			return
		}
	}
	w.WriteHeader(http.StatusOK)
}
Ready is used to handle HTTP Ready requests to this service. Use this for readiness
probes or any checks that validate the service is ready to accept traffic.
package app
import (
	"encoding/base64"
	"fmt"
	"github.com/julienschmidt/httprouter"
	"github.com/madflojo/tarmac"
	"github.com/pquerna/ffjson/ffjson"
	"github.com/sirupsen/logrus"
	"io/ioutil"
	"net/http"
	"regexp"
	"strings"
	"time"
)
var isPProf = regexp.MustCompile(`.*debug\/pprof.*`)
type server struct {
	httpServer *http.Server
	httpRouter *httprouter.Router
}
func (s *server) Health(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
	w.WriteHeader(http.StatusOK)
}