+// SupervisionURL is the url where kubernetes posts alive queries
+const SupervisionURL = "/supervision/"
+
+// HTTPServer is the VesMgr HTTP server struct
+type HTTPServer struct {
+ listener net.Listener
+}
+
+func (s *HTTPServer) init(address string) *HTTPServer {
+ var err error
+ s.listener, err = net.Listen("tcp", address)
+ if err != nil {
+ panic("Cannot listen:" + err.Error())
+ }
+ return s
+}
+
+func (s *HTTPServer) start(notifPath string, notifCh chan []byte, supCh chan chan string) {
+ go runHTTPServer(s.listener, notifPath, notifCh, supCh)
+}