cleaner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cleaner checks outdated data every certain interval and delete them from the storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

Cleaner is to help clean outdated data.

func New

func New(db *storage.DB, period uint32) *Cleaner

New creates a cleaner.

func (*Cleaner) Start

func (c *Cleaner) Start()

Start a time ticker and wait to check.

Jump to

Keyboard shortcuts

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