job

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanDatabaseJob

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

CleanDatabaseJob is a job to clean the database

func NewCleanDatabaseJob

func NewCleanDatabaseJob(_db db.DB) *CleanDatabaseJob

NewCleanDatabaseJob create and start new job to clean the database

func (*CleanDatabaseJob) Stop

func (cdj *CleanDatabaseJob) Stop()

Stop job

type Scheduler

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

Scheduler is a job scheduler

func StartNewScheduler

func StartNewScheduler(_db db.DB) *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