scheduler

package
v0.0.0-...-09cb928 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(k *dislet.Kernel)

func Consumption

func Consumption(lineId uint) error

func SchedulerJob

func SchedulerJob(jobId string) *tasks.Signature

Types

type Job

type Job struct {
	LineId          uint
	LastResult      string
	Period          time.Duration
	LastRun         time.Time
	NextRun         time.Time
	ContinueRunning bool
	MaxPeriod       time.Duration
	MinPeriod       time.Duration
	IncrementRatio  float32
	DecrementRatio  float32
}

type MysqlJob

type MysqlJob struct {
	gorm.Model
	LastResult      string
	Period          uint
	LastRun         time.Time
	NextRun         time.Time
	ContinueRunning bool
	MaxPeriod       uint
	MinPeriod       uint
	IncrementRatio  float32 `sql:"type:decimal(4,2);"`
	DecrementRatio  float32 `sql:"type:decimal(4,2);"`
}

Jump to

Keyboard shortcuts

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