compacter

package
Version: v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL