Documentation ¶ Index ¶ func Start(ctx context.Context, l Log, options ...Option) error type Log type Option func Interval(duration time.Duration) Option func Retention(duration time.Duration) Option type Results func RemoveOldSegments(l Log, olderThan time.Time) (Results, error) type Settings Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Start ¶ func Start(ctx context.Context, l Log, options ...Option) error Types ¶ type Log ¶ type Log interface { Segments() ([]log.Segment, error) RemoveSegmentStartingAt(t time.Time) error } type Option ¶ type Option func(*Settings) error func Interval ¶ func Interval(duration time.Duration) Option func Retention ¶ func Retention(duration time.Duration) Option type Results ¶ type Results struct { SegmentsRemoved []log.Segment } func RemoveOldSegments ¶ func RemoveOldSegments(l Log, olderThan time.Time) (Results, error) type Settings ¶ type Settings struct { // contains filtered or unexported fields } Source Files ¶ View all Source files compacter.go Click to show internal directories. Click to hide internal directories.