Documentation ¶
Index ¶
Constants ¶
View Source
const RetentionGridKeepCountAll int = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (Grid) FitEntries ¶
Partition a list of RetentionGridEntries into the Grid, relative to a given start date `now`.
The `keepCount` oldest entries per `retentiongrid.Interval` are kept (`keep`), the others are removed (`remove`).
Entries that are younger than `now` are always kept. Those that are older than the earliest beginning of an interval are removed.
Click to show internal directories.
Click to hide internal directories.