Change-Id: I3eba9fc785e38ec7b609632e3577cfd17fbc3245
Signed-off-by: jw_wonny.cha <jw_wonny.cha@samsung.com>
import "C"
import (
+ "fmt"
"log"
"logmgr"
+ "net/http"
"securemgr"
"strings"
"sync"
configuremgr "configuremgr"
discoverymgr "discoverymgr"
orchestrationapi "orchestrationapi"
+ restapi "restapi/v1"
scoringmgr "scoringmgr"
servicemgr "servicemgr"
)
orcheEngine.IScoringmgr.Listening()
go orcheEngine.IConfiguremgr.Watch("/etc/edge-orchestration")
+ router := restapi.NewRouter()
+ go http.ListenAndServe(fmt.Sprintf(":%d", ConstWellknownPort), router)
+
errCode = 0
return