// ValidateEventType checks that eventtype is an expected type of event func ValidateEventType(eventtype string) bool { … } // IsKeyNotFoundError is utility function that checks if an error is not found error func IsKeyNotFoundError(err error) bool { … }