Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job interface {
cron.Job
Name() string // unique field
Attribute() interface{}
SetStatus(basetask.Status)
GetStatus() basetask.Status
Data() interface{}
Spec() string
}
Job is the interface that wraps the basic Run method.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) Task ¶
func (P *Process) Task(name string) *TaskWrapper
func (*Process) Tasks ¶
func (P *Process) Tasks() []TaskWrapper
type TaskWrapper ¶
type TaskWrapper struct {
EntryID
Name string
Type string
// contains filtered or unexported fields
}
func Task ¶
func Task(name string) *TaskWrapper
func Tasks ¶
func Tasks() []TaskWrapper
func (*TaskWrapper) Task ¶
func (tw *TaskWrapper) Task() Job
Click to show internal directories.
Click to hide internal directories.