code: func SendData(client riemanngo.Client, events []riemanngo.Event) error {
  	// do nothing if we are not connected
  	if client == nil {
  		glog.Warningf("Riemann sink not connected")
  		return nil
  	}
  	start := time.Now()
  	_, err := riemanngo.SendEvents(client, &events)
  	end := time.Now()
  	if err == nil {
  		glog.V(4).Infof("Exported %d events to riemann in %s", len(events), end.Sub(start))
  		return nil
  	} else {
  		glog.Warningf("There were errors sending events to Riemman, forcing reconnection. Error : %+v", err)
  		return err
  	}
  }
docs: // Send Events to Riemann using the client from the sink.