ttlcontroller

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(c *Controller, controllerRuntimeStopCh <-chan struct{})

Register periodically calls function runWorker to delete the data.

Types

type Controller

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

Controller defines the database ttl controller

func NewController

func NewController(
	experiment core.ExperimentStore,
	event core.EventStore,
	ttlc *TTLconfig,
) *Controller

NewController returns a new database ttl controller

type TTLconfig

type TTLconfig struct {
	// databaseTTLResyncPeriod defines the time interval to cleanup data in the database.
	DatabaseTTLResyncPeriod time.Duration
	// EventTTL defines the ttl of events
	EventTTL time.Duration
	// ArchiveExperimentTTL defines the ttl of archive experiments
	ArchiveExperimentTTL time.Duration
}

TTLconfig defines the ttl

Jump to

Keyboard shortcuts

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