Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + const ModePeriodic + const ModeRevision + type Compactable interface + Compact func(ctx context.Context, r *pb.CompactionRequest) (*pb.CompactionResponse, error) + type Compactor interface + Pause func() + Resume func() + Run func() + Stop func() + func New(lg *zap.Logger, mode string, retention time.Duration, rg RevGetter, ...) (Compactor, error) + type Periodic struct + func (pc *Periodic) Pause() + func (pc *Periodic) Resume() + func (pc *Periodic) Run() + func (pc *Periodic) Stop() + type RevGetter interface + Rev func() int64 + type Revision struct + func (rc *Revision) Pause() + func (rc *Revision) Resume() + func (rc *Revision) Run() + func (rc *Revision) Stop()