Code Readability improveent 74/3674/1 Release3
authorkhemendra kumar <khemendra.kumar@huawei.com>
Sat, 15 Aug 2020 11:27:52 +0000 (16:57 +0530)
committerkhemendra kumar <khemendra.kumar@huawei.com>
Sat, 15 Aug 2020 11:27:52 +0000 (16:57 +0530)
Signed-off-by: khemendra kumar <khemendra.kumar@huawei.com>
Change-Id: I906207378d206fa3d4da184034cc1ec79f44a11c

mep/mepserver/mp1/models/serviceinfo.go

index 01b48a6..ea57cd6 100644 (file)
@@ -31,6 +31,7 @@ import (
        meputil "mepserver/mp1/util"
 )
 
+// This type represents the general information of a MEC service info for registry/discovery
 type ServiceInfo struct {
        SerInstanceId     string        `json:"serInstanceId,omitempty"`
        SerName           string        `json:"serName"`
@@ -193,6 +194,7 @@ func (s *ServiceInfo) serCategoryFromProperties(properties map[string]string) {
        s.SerCategory.Version = properties["serCategory/version"]
 }
 
+//Parse service endpoint info
 func (s *ServiceInfo) fromEndpoints(uris []string, epType string) {
        if epType == "uris" {
                s.TransportInfo.Endpoint.Uris = uris
@@ -219,6 +221,7 @@ func (s *ServiceInfo) fromEndpoints(uris []string, epType string) {
        }
 }
 
+//Parse service transport info
 func (s *ServiceInfo) transportInfoFromProperties(properties map[string]string) {
        if properties == nil {
                return