cleaner

package
v0.0.0-...-77c78fe Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	Interval     int
	MaxAge       int
	CleanOnStart bool
	Folder       string
	Cron         *cron.Cron
}

func New

func New(c *m.Config) *Cleaner

New returns a new ares cleaner instance

func (*Cleaner) Start

func (c *Cleaner) Start()

Start starts the cleaner which scans the folders in interval and cleans old files

Jump to

Keyboard shortcuts

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