cleanup

package
v0.0.0-...-1ce205e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultInterval  = time.Duration(time.Minute * 5)
	DefaultRetention = time.Duration(time.Hour * 24)
)

Functions

This section is empty.

Types

type Cleanup

type Cleanup struct {
	Config    *config.Config
	Interval  time.Duration
	Retention time.Duration
}

func NewCleanup

func NewCleanup(conf *config.Config, interval time.Duration, retention time.Duration) *Cleanup

func (*Cleanup) Run

func (c *Cleanup) Run(shutdownChannel chan bool, waitGroup *sync.WaitGroup, errorChannel chan bool)

Jump to

Keyboard shortcuts

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