code: func InitNotifier(model *m.AlertNotification) (Notifier, error) {
  	notifierPlugin, found := notifierFactories[model.Type]
  	if !found {
  		return nil, errors.New("Unsupported notification type")
  	}
  
  	return notifierPlugin.Factory(model)
  }
docs: // InitNotifier instantiate a new notifier based on the model