MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / IsValidEventType

Function IsValidEventType

internal/webhookpub/event.go:96–103  ·  view source on GitHub ↗

IsValidEventType reports whether name is one of the catalog event types. Convenience wrapper for the handler-layer validator.

(name string)

Source from the content-addressed store, hash-verified

94// IsValidEventType reports whether name is one of the catalog
95// event types. Convenience wrapper for the handler-layer validator.
96func 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

Callers 3

validateWebhookFieldsMethod · 0.92
handleTestWebhookMethod · 0.92

Calls

no outgoing calls

Tested by 1