job

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanCacheJob

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

CleanCacheJob is a job to clean the cache

func NewCleanCacheJob

func NewCleanCacheJob(_db store.DB, cacheRetention time.Duration) *CleanCacheJob

NewCleanCacheJob create and start new job to clean the cache

func (*CleanCacheJob) Stop

func (ccj *CleanCacheJob) Stop()

Stop job

type Scheduler

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

Scheduler is a job scheduler

func StartNewScheduler

func StartNewScheduler(_db store.DB, conf config.Config) *Scheduler

StartNewScheduler create and start new job scheduler

func (*Scheduler) Shutdown

func (s *Scheduler) Shutdown()

Shutdown job scheduler

Jump to

Keyboard shortcuts

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