cronman

package
v2.1.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CRON_INTERVAL = 60 * time.Second // default resolution is 1 monutes
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SCronJob

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

type SCronJobManager

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

func NewCronJobManager

func NewCronJobManager(interval time.Duration) *SCronJobManager

func (*SCronJobManager) AddJob

func (self *SCronJobManager) AddJob(name string, interval time.Duration, jobFunc func(ctx context.Context, userCred mcclient.TokenCredential))

func (*SCronJobManager) Start

func (self *SCronJobManager) Start()

func (*SCronJobManager) Stop

func (self *SCronJobManager) Stop()

Jump to

Keyboard shortcuts

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