Add "Const" prefix in configure
authorjw_wonny.cha <jw_wonny.cha@samsung.com>
Mon, 25 Mar 2019 07:59:53 +0000 (16:59 +0900)
committerjw_wonny.cha <jw_wonny.cha@samsung.com>
Mon, 25 Mar 2019 07:59:53 +0000 (16:59 +0900)
src/servicemgr/configure.go

index 986155d1375db740760947660a46bcbaace065df..df72941f777941fd91a32b3ff6809a97cee0a390 100644 (file)
@@ -1,27 +1,52 @@
 package servicemgr
 
+import "errors"
+
 const (
        // IPCMsgChan is number of message channel for receving data
        IPCMsgChan = 10
 
-       // KeyAppName is key of app name
-       KeyAppName = "AppName"
+       // ConstKeyAppName is key of app name
+       ConstKeyAppName = "AppName"
+
+       // ConstKeyServiceName is key of service name
+       ConstKeyServiceName = "ServiceName"
+
+       // ConstKeyCmd is key of command
+       ConstKeyCmd = "Cmd"
+
+       // ConstKeyMsgChan is key of message channel
+       ConstKeyMsgChan = "MsgChan"
+
+       // ConstKeyCtlChan is key of control channels
+       ConstKeyCtlChan = "CtlChan"
 
-       // KeyServiceName is key of service name
-       KeyServiceName = "ServiceName"
+       // ConstServiceStatusFailed is service status is failed
+       ConstServiceStatusFailed = "Failed"
 
-       // KeyCmd is key of command
-       KeyCmd = "Cmd"
+       // ConstServiceStatusStarted is service status is started
+       ConstServiceStatusStarted = "Started"
 
-       // KeyMsgChan is key of message channel
-       KeyMsgChan = "MsgChan"
+       // ConstServiceStatusFinished is service status is finished
+       ConstServiceStatusFinished = "Finished"
 
-       // KeyCtlChan is key of control channels
-       KeyCtlChan = "CtlChan"
+       // ConstServiceFound is service status is found
+       ConstServiceFound = "Found"
+
+       // ConstServiceNotFound is service status is not found
+       ConstServiceNotFound = "NotFound"
+
+       // ConstFWWellknownPort is wellknonw port of framework
+       ConstFWWellknownPort = 56002
 )
 
-// ServiceMap is that map has service information
-var ServiceMap ConcurrentMap
+var (
+       // ErrInvalidService is for error type of invalid service
+       ErrInvalidService = errors.New("It is Invalid Service")
 
-// ServiceIdx is for unique service ID
-var ServiceIdx uint64
+       // ServiceMap is that map has service information
+       ServiceMap ConcurrentMap
+
+       // ServiceIdx is for unique service ID
+       ServiceIdx uint64
+)