Commit 28ec84b0 authored by Ayesha Ayub's avatar Ayesha Ayub
Browse files

clean block comments in MEC015 APIs

parent dd1c1d6b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1956,7 +1956,6 @@ func addBwBufferResource(bwInfoInput *BwInfo, w http.ResponseWriter) error {
* sessionContains compares the slice of unique sessions with the passed single session of the requested allocation
* @param {[]BwInfoSessionFilter} sessionSlice	slice contains the unique sessions
* @param {BwInfoSessionFilter} singleSessionFilter	single session to be compared
* @param {http.ResponseWriter} w writes HTTP reply
* @return {[]BwInfoSessionFilter} returns the updated slice of sessionFilters
* @return {error} An error will be return if occurs
 */
+13 −0
Original line number Diff line number Diff line
@@ -792,6 +792,12 @@ func mtsSessionPost(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, jsonResponse)
}

/*
* compareFlowFilters compares the requested allocation flowFilters with the existing unique flowFilters stored in redis of allocated resources
* @param {string} key	mts Session Informations stored with this key
* @param {string} jsonInfo mts Session Information
* @return {String} error error message
 */
func compareFlowFilters(key string, jsonInfo string, flowFilterList interface{}) error {

	// Get query params & mtsSessionInfo
@@ -1395,6 +1401,13 @@ func errHandlerProblemDetails(w http.ResponseWriter, error string, code int) {
	fmt.Fprint(w, jsonResponse)
}

/*
* sessionContains compares the slice of unique sessions with the passed single session of the requested allocation
* @param {[]MtsSessionInfoFlowFilter} sessionSlice	slice contains the unique FlowFilter
* @param {MtsSessionInfoFlowFilter} singleFlowFilter	single FlowFilter to be compared
* @return {[]MtsSessionInfoFlowFilter} returns the updated slice of FlowFilter
* @return {error} An error will be return if occurs
 */
func sessionContains(sessionSlice []MtsSessionInfoFlowFilter, singleFlowFilter MtsSessionInfoFlowFilter) ([]MtsSessionInfoFlowFilter, error) {
	for _, sessionSlice1 := range sessionSlice {
		if reflect.DeepEqual(singleFlowFilter, sessionSlice1) {