func startHTTPServer(server *http.Server,
	stopServerCh chan bool) {
	if server != nil {
		log.Infof("HTTP 1.1 listening on %s", server.Addr)
		if err := server.ListenAndServe(); err != nil {
			log.Errf("HTTP server error: " + err.Error())
		}
	}
	stopServerCh <- true
}
/* Go Routine is spawned here for starting HTTP Server
package ngcnef
import (
	"context"
	"errors"
	"net/http"
	"time"
	"github.com/gorilla/mux"
	logtool "github.com/open-ness/common/log"
	"golang.org/x/net/http2"
)
type NefApp struct {
	NefRouter *mux.Router
	NefCtx    *nefContext
}
var NefAppG NefApp
var log = logtool.DefaultLogger.WithField("NEF", nil)
type HTTPConfig struct {
	Endpoint string `json:"endpoint"`
}
type HTTP2Config struct {
	Endpoint      string `json:"endpoint"`
	NefServerCert string `json:"NefServerCert"`
	NefServerKey  string `json:"NefServerKey"`
	AfClientCert  string `json:"AfClientCert"`
}
type Config struct {
	NefAPIRoot                string `json:"nefAPIRoot"`
	LocationPrefix            string `json:"locationPrefix"`
	LocationPrefixPfd         string `json:"locationPrefixPfd"`
	MaxSubSupport             int    `json:"maxSubSupport"`
	MaxPfdTransSupport        int    `json:"maxPfdTransSupport"`
	MaxAFSupport              int    `json:"maxAFSupport"`
	SubStartID                int    `json:"subStartID"`
	PfdTransStartID           int    `json:"pfdTransStartID"`
	UpfNotificationResURIPath string `json:"UpfNotificationResUriPath"`
	UserAgent                 string `json:"UserAgent"`
	HTTPConfig                HTTPConfig
	HTTP2Config               HTTP2Config
	AfServiceIDs              []interface{} `json:"afServiceIDs"`
	OAuth2Support             bool          `json:"OAuth2Support"`
}
type nefContext struct {
	cfg Config
	nef nefData
}