set up
This commit is contained in:
@@ -199,6 +199,7 @@ const (
|
||||
PB_DELETE
|
||||
PB_PLANNER
|
||||
PB_CLOSE_PLANNER
|
||||
PB_CONSIDERS
|
||||
NONE
|
||||
)
|
||||
|
||||
@@ -218,12 +219,14 @@ func GetActionString(ss string) PubSubAction {
|
||||
return PB_PLANNER
|
||||
case "close_planner":
|
||||
return PB_CLOSE_PLANNER
|
||||
case "considers":
|
||||
return PB_CONSIDERS
|
||||
default:
|
||||
return NONE
|
||||
}
|
||||
}
|
||||
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner"}
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner", "close_planner", "considers"}
|
||||
|
||||
func (m PubSubAction) String() string {
|
||||
return strings.ToUpper(path[m])
|
||||
|
||||
Reference in New Issue
Block a user