Missing action
This commit is contained in:
@@ -193,10 +193,11 @@ type PubSubAction int
|
||||
|
||||
const (
|
||||
PB_SEARCH PubSubAction = iota
|
||||
PB_PLANNER
|
||||
PB_SEARCH_RESPONSE
|
||||
PB_CREATE
|
||||
PB_UPDATE
|
||||
PB_DELETE
|
||||
PB_PLANNER
|
||||
NONE
|
||||
)
|
||||
|
||||
@@ -210,6 +211,8 @@ func GetActionString(ss string) PubSubAction {
|
||||
return PB_UPDATE
|
||||
case "delete":
|
||||
return PB_DELETE
|
||||
case "search_response":
|
||||
return PB_SEARCH_RESPONSE
|
||||
case "planner":
|
||||
return PB_PLANNER
|
||||
default:
|
||||
@@ -217,7 +220,7 @@ func GetActionString(ss string) PubSubAction {
|
||||
}
|
||||
}
|
||||
|
||||
var path = []string{"search", "planner", "create", "update", "delete"}
|
||||
var path = []string{"search", "search_response", "create", "update", "delete", "planner"}
|
||||
|
||||
func (m PubSubAction) String() string {
|
||||
return strings.ToUpper(path[m])
|
||||
|
||||
Reference in New Issue
Block a user