Loading examples/demo6/golang/main.go +4 −4 Original line number Original line Diff line number Diff line Loading @@ -329,7 +329,7 @@ const ( ) ) func clearScreen() { func clearScreen() { //fmt.Println("\033[2J") fmt.Println("\033[2J") } } func menu(message string) []string { func menu(message string) []string { Loading @@ -351,7 +351,7 @@ func menu(message string) []string { "MEC 013:\n"+ "MEC 013:\n"+ "\t%s <ue address>: Get UE location', %s <ue address>: UE location subscription, %s <subID>: UE location subscription\n"+ "\t%s <ue address>: Get UE location', %s <ue address>: UE location subscription, %s <subID>: UE location subscription\n"+ "MEC 030:\n"+ "MEC 030:\n"+ "\t%s: Get V2X UU unicast setting', %s: V2X Msg subscription, %s <subID>: Delete V2X subscription, %s <[latutudes] [longitudes] [timestamps]: Provide PredictedQoS\n"+ "\t%s: Get V2X UU unicast setting', %s: V2X Msg subscription, %s <subID>: Delete V2X subscription, %s <[latitudes] [longitudes] [timestamps]: Provide PredictedQoS\n"+ "\t\t[latitudes] is a set of latitudes separated by comma, [longitudes] is a set of longitudes separated by comma, [timestamps]\n"+ "\t\t[latitudes] is a set of latitudes separated by comma, [longitudes] is a set of longitudes separated by comma, [timestamps]\n"+ "\t\tE.g. 43.729416,43.732456 7.414853,7.418417 1653295620,1653299220\n"+ "\t\tE.g. 43.729416,43.732456 7.414853,7.418417 1653295620,1653299220\n"+ "MEC 040:\n"+ "MEC 040:\n"+ Loading Loading @@ -1145,7 +1145,7 @@ func mec013_delete_ue_loc_subscription(choice string) (response *http.Response, } } // Set URL // Set URL url := mecUrl + "/" + sandboxName + "/" + mecPlateform + "/location/v3/users/subscriptions/" + choice url := mecUrl + "/" + sandboxName + "/" + mecPlateform + "/location/v3/subscriptions/users/" + choice fmt.Println("mec013_delete_ue_loc_subscription: url: " + url) fmt.Println("mec013_delete_ue_loc_subscription: url: " + url) // Send request and await response // Send request and await response response, err = delete_subscription(url) response, err = delete_subscription(url) Loading Loading @@ -1665,7 +1665,7 @@ func main() { // Start REST API Server // Start REST API Server go func() { go func() { fmt.Println(">>> Start REST API Server on port : ", config.CallbackPort) //fmt.Println(">>> Start REST API Server on port : ", config.CallbackPort) router := NewRouter() router := NewRouter() methods := handlers.AllowedMethods([]string{"OPTIONS", "DELETE", "GET", "HEAD", "POST", "PUT"}) methods := handlers.AllowedMethods([]string{"OPTIONS", "DELETE", "GET", "HEAD", "POST", "PUT"}) header := handlers.AllowedHeaders([]string{"content-type"}) header := handlers.AllowedHeaders([]string{"content-type"}) Loading Loading
examples/demo6/golang/main.go +4 −4 Original line number Original line Diff line number Diff line Loading @@ -329,7 +329,7 @@ const ( ) ) func clearScreen() { func clearScreen() { //fmt.Println("\033[2J") fmt.Println("\033[2J") } } func menu(message string) []string { func menu(message string) []string { Loading @@ -351,7 +351,7 @@ func menu(message string) []string { "MEC 013:\n"+ "MEC 013:\n"+ "\t%s <ue address>: Get UE location', %s <ue address>: UE location subscription, %s <subID>: UE location subscription\n"+ "\t%s <ue address>: Get UE location', %s <ue address>: UE location subscription, %s <subID>: UE location subscription\n"+ "MEC 030:\n"+ "MEC 030:\n"+ "\t%s: Get V2X UU unicast setting', %s: V2X Msg subscription, %s <subID>: Delete V2X subscription, %s <[latutudes] [longitudes] [timestamps]: Provide PredictedQoS\n"+ "\t%s: Get V2X UU unicast setting', %s: V2X Msg subscription, %s <subID>: Delete V2X subscription, %s <[latitudes] [longitudes] [timestamps]: Provide PredictedQoS\n"+ "\t\t[latitudes] is a set of latitudes separated by comma, [longitudes] is a set of longitudes separated by comma, [timestamps]\n"+ "\t\t[latitudes] is a set of latitudes separated by comma, [longitudes] is a set of longitudes separated by comma, [timestamps]\n"+ "\t\tE.g. 43.729416,43.732456 7.414853,7.418417 1653295620,1653299220\n"+ "\t\tE.g. 43.729416,43.732456 7.414853,7.418417 1653295620,1653299220\n"+ "MEC 040:\n"+ "MEC 040:\n"+ Loading Loading @@ -1145,7 +1145,7 @@ func mec013_delete_ue_loc_subscription(choice string) (response *http.Response, } } // Set URL // Set URL url := mecUrl + "/" + sandboxName + "/" + mecPlateform + "/location/v3/users/subscriptions/" + choice url := mecUrl + "/" + sandboxName + "/" + mecPlateform + "/location/v3/subscriptions/users/" + choice fmt.Println("mec013_delete_ue_loc_subscription: url: " + url) fmt.Println("mec013_delete_ue_loc_subscription: url: " + url) // Send request and await response // Send request and await response response, err = delete_subscription(url) response, err = delete_subscription(url) Loading Loading @@ -1665,7 +1665,7 @@ func main() { // Start REST API Server // Start REST API Server go func() { go func() { fmt.Println(">>> Start REST API Server on port : ", config.CallbackPort) //fmt.Println(">>> Start REST API Server on port : ", config.CallbackPort) router := NewRouter() router := NewRouter() methods := handlers.AllowedMethods([]string{"OPTIONS", "DELETE", "GET", "HEAD", "POST", "PUT"}) methods := handlers.AllowedMethods([]string{"OPTIONS", "DELETE", "GET", "HEAD", "POST", "PUT"}) header := handlers.AllowedHeaders([]string{"content-type"}) header := handlers.AllowedHeaders([]string{"content-type"}) Loading