IsValidEventType reports whether name is one of the catalog event types. Convenience wrapper for the handler-layer validator.
(name string)
| 94 | // IsValidEventType reports whether name is one of the catalog |
| 95 | // event types. Convenience wrapper for the handler-layer validator. |
| 96 | func IsValidEventType(name string) bool { |
| 97 | for _, e := range AllEventTypes { |
| 98 | if e == name { |
| 99 | return true |
| 100 | } |
| 101 | } |
| 102 | return false |
| 103 | } |
| 104 | |
| 105 | // Event is the input to Publisher.Publish. Carries the routing keys |
| 106 | // (UserID, AgentID, ConversationID, Labels) needed to apply filters |
no outgoing calls