type Revision … // newRevision creates a new instance of Revisonal compactor that purges // the log older than retention revisions from the current revision. func newRevision(lg *zap.Logger, clock clockwork.Clock, retention int64, rg RevGetter, c Compactable) *Revision { … } const revInterval … // Run runs revision-based compactor. func (rc *Revision) Run() { … } // Stop stops revision-based compactor. func (rc *Revision) Stop() { … } // Pause pauses revision-based compactor. func (rc *Revision) Pause() { … } // Resume resumes revision-based compactor. func (rc *Revision) Resume() { … }