code: func NewEventAggregator(lruCacheSize int, keyFunc EventAggregatorKeyFunc, messageFunc EventAggregatorMessageFunc,
  	maxEvents int, maxIntervalInSeconds int, clock clock.Clock) *EventAggregator {
  	return &EventAggregator{
  		cache:                lru.New(lruCacheSize),
  		keyFunc:              keyFunc,
  		messageFunc:          messageFunc,
  		maxEvents:            uint(maxEvents),
  		maxIntervalInSeconds: uint(maxIntervalInSeconds),
  		clock:                clock,
  	}
  }
docs: // NewEventAggregator returns a new instance of an EventAggregator