- Add StatusNotification Type
authorjw_wonny.cha <jw_wonny.cha@samsung.com>
Thu, 28 Mar 2019 12:32:11 +0000 (21:32 +0900)
committerjw_wonny.cha <jw_wonny.cha@samsung.com>
Thu, 28 Mar 2019 12:32:11 +0000 (21:32 +0900)
src/servicemgr/types.go

index 46a1500..0ef70d3 100644 (file)
@@ -27,11 +27,6 @@ type RelatedService struct {
        Port        int    `json:"Port"`
 }
 
-// ErrorType structure
-type ErrorType struct {
-       ErrorCode string `json:"ErrorCode"`
-}
-
 // ServiceExecutionResponse structure
 type ServiceExecutionResponse struct {
        Status string `json:"Status"`
@@ -42,39 +37,22 @@ type ServiceDestroyResponse struct {
        Return string `json:"Return"`
 }
 
-// ServiceCreationResponse structure
-type ServiceCreationResponse struct {
-       Status      string                        `json:"Status"`
-       ServiceList []ServiceCreationResponseItem `json:"ServiceList"`
-}
-
-// ServiceCreationResponseItem structure
-type ServiceCreationResponseItem struct {
-       ID   uint64 `json:"ID"`
-       Time string `json:"Time"`
-}
-
-// MsgFormat structure
-type MsgFormat struct {
-       Header MsgHeader   `json:"Header"`
-       Body   interface{} `json:"Body"`
+// StatusNotification structure
+type StatusNotification struct {
+       ServiceID uint64 `json:"ServiceID"`
+       Status    string `json:"Status"`
 }
 
-// MsgHeader structure
-type MsgHeader struct {
-       Type string `json:"Type"`
-}
-
-// ServiceReturnInfo structure
-type ServiceReturnInfo struct {
-       ServiceID   uint64 `json:"ServiceID"`
-       ServiceName string `json:"ServiceName"`
-       Status      string `json:"Status"`
-       DeviceIP    string `json:"DeviceIP"`
-}
+// // ServiceReturnInfo structure
+// type ServiceReturnInfo struct {
+//     ServiceID   uint64 `json:"ServiceID"`
+//     ServiceName string `json:"ServiceName"`
+//     Status      string `json:"Status"`
+//     DeviceIP    string `json:"DeviceIP"`
+// }
 
-//AppReturnInfo structure
-type AppReturnInfo struct {
-       AppName     string              `json:"AppName"`
-       ServiceList []ServiceReturnInfo `json:"ServiceList"`
-}
+// //AppReturnInfo structure
+// type AppReturnInfo struct {
+//     AppName     string              `json:"AppName"`
+//     ServiceList []ServiceReturnInfo `json:"ServiceList"`
+// }