code: func (dis *dispatcher) DispatchEvent(event *core.Event) error {
  	if event == nil {
  		return errors.New("empty event provided")
  	}
  
  	for regKey, listeners := range dis.listeners {
  		matched, err := regexp.MatchString(regKey, event.Key)
  		if err != nil {
  			openlogging.GetLogger().Errorf("regular expresssion for key %s failed: %s", regKey, err)
  			continue
  		}
  		if matched {
  			for _, listener := range listeners {
  				openlogging.GetLogger().Debugf("event generated for %s", regKey)
  				go listener.Event(event)
  			}
  		}
  	}
  
  	return nil
  }
docs: // DispatchEvent sends the action trigger for a particular event on a configuration