statushistorypruner

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxLogsPerState = 100
View Source
const DefaultPruneInterval = 5 * time.Minute

Variables

This section is empty.

Functions

func New

func New(st *state.State, params *HistoryPrunerParams) worker.Worker

New returns a worker.Worker for history Pruner.

Types

type HistoryPrunerParams

type HistoryPrunerParams struct {
	// TODO(perrito666) We might want to have some sort of limitation of the collection size too.
	MaxLogsPerState int
	PruneInterval   time.Duration
}

HistoryPrunerParams specifies how history logs should be prunned.

func NewHistoryPrunerParams

func NewHistoryPrunerParams() *HistoryPrunerParams

NewHistoryPrunerParams returns a HistoryPrunerParams initialized with default parameter.

Jump to

Keyboard shortcuts

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