// TrackEvent adds an event-specific key to channel activity to allow ratz to monitor his own activity over time func (r *RatzServer) TrackEvent(eventkey string) { … } // EventCount returns the amount of times this event has been record in the given time window func (r *RatzServer) EventCount(eventkey string, window common.TimeWindow) (count int) { … } func (r *RatzServer) PurgeEvent(eventkey string) { … }