code: func NewStatsdBuffer(interval time.Duration, client Statsd) *StatsdBuffer {
  	sb := &StatsdBuffer{
  		flushInterval: interval,
  		statsd:        client,
  		eventChannel:  make(chan event.Event, 100),
  		events:        make(map[string]event.Event),
  		closeChannel:  make(chan closeRequest),
  		Logger:        log.New(os.Stdout, "[BufferedStatsdClient] ", log.Ldate|log.Ltime),
  		Verbose:       true,
  	}
  	go sb.collector()
  	return sb
  }
docs: // NewStatsdBuffer Factory