const channelCommentActivityKey … type channelActivity … func (c *Channel) TrackMessage(m common.Message) { … } // TrackEvent adds a channel-specific key to channel stats, in case we need something partitioned by channel that isn't comment activity. func (c *Channel) TrackEvent(eventkey string) { … } // EventCount returns the amount of times this event has been record in the given time window func (c *Channel) EventCount(eventkey string, window common.TimeWindow) (count int) { … } func (c *Channel) Activity(window common.TimeWindow) int { … } func (c *Channel) PurgeEvent(event string) { … }