retentiongrid

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RetentionGridKeepCountAll int = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	Date() time.Time
}

type Grid

type Grid struct {
	// contains filtered or unexported fields
}

func NewGrid

func NewGrid(l []Interval) *Grid

func (Grid) FitEntries

func (g Grid) FitEntries(entries []Entry) (keep, remove []Entry)

type Interval

type Interval interface {
	Length() time.Duration
	KeepCount() int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL