retention

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTTL = 7 * 24 * time.Hour

DefaultTTL .

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedRetentionStrategy

type FixedRetentionStrategy struct {
	TTL time.Duration
}

FixedRetentionStrategy .

func (*FixedRetentionStrategy) GetTTL

type RetentionStrategy

type RetentionStrategy interface {
	GetTTL(*loader.IndexEntry) time.Duration
}

RetentionStrategy .

var DefaultRetentionStrategy RetentionStrategy = &FixedRetentionStrategy{
	TTL: DefaultTTL,
}

DefaultRetentionStrategy .

Jump to

Keyboard shortcuts

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