kmgScheduleTask

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func RegisterTable

func RegisterTable()

func RegisterTask

func RegisterTask(task Task)

func RegisterTaskFunc

func RegisterTaskFunc(FuncName string, Func func(task Task))

任务内部抛出的异常,处理方式和kmgControllerRunner差不多.会全部截取掉,然后写个log

Types

type Task

type Task struct {
	Id          string
	FuncName    string
	InMap       map[string]string
	ExecuteTime time.Time
}

type TaskSlice

type TaskSlice []Task

func (*TaskSlice) Len

func (ts *TaskSlice) Len() int

func (*TaskSlice) Less

func (ts *TaskSlice) Less(i, j int) bool

func (*TaskSlice) Pop

func (ts *TaskSlice) Pop() interface{}

func (*TaskSlice) Push

func (ts *TaskSlice) Push(x interface{})

func (*TaskSlice) Swap

func (ts *TaskSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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