Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionStart uint64 = 1 << 1 ActionStop uint64 = 1 << 2 )
View Source
const ( Second = 1 << iota // Second Minute // Minute Hour // Hour Day // Day of month Month // Month Weekday // Day of week )
View Source
const ( StatusOK uint64 = 1 << 1 StatusER uint64 = 1 << 2 )
View Source
const (
Version = "0.0.2"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ConditionDel ¶
func (*Context) ConditionRefresh ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) BriefReport ¶
func (it *Daemon) BriefReport() *DaemonBriefReport
type DaemonBriefReport ¶
type DaemonBriefReport struct {
Jobs []*DaemonBriefReportJob `json:"jobs" toml:"jobs"`
}
type DaemonBriefReportJob ¶
type DaemonStatus ¶
type DaemonStatus struct {
Jobs []*JobStatus `json:"jobs" toml:"jobs"`
}
type JobEntry ¶
type JobEntry struct { Status *JobStatus // contains filtered or unexported fields }
func NewJobEntry ¶
type JobExecLog ¶
type JobExecLog struct { Created int64 `json:"created" toml:"created"` Updated int64 `json:"updated" toml:"updated"` Status uint64 `json:"status" toml:"status"` Message string `json:"message,omitempty" toml:"message,omitempty"` }
func (*JobExecLog) ER ¶
func (it *JobExecLog) ER(msg string) *JobExecLog
func (*JobExecLog) OK ¶
func (it *JobExecLog) OK(args ...string) *JobExecLog
type JobSpec ¶
func NewJobSpec ¶
type JobStatus ¶
type JobStatus struct { ExecNum int64 `json:"exec_num" toml:"exec_num"` NextExecTime int64 `json:"next_exec_time" toml:"next_exec_time"` ExecLogs []*JobExecLog `json:"exec_logs" toml:"exec_logs"` // contains filtered or unexported fields }
func (*JobStatus) LastLog ¶
func (it *JobStatus) LastLog() *JobExecLog
func (*JobStatus) LogSync ¶
func (it *JobStatus) LogSync(log *JobExecLog)
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func NewSchedule ¶
func NewSchedule() *Schedule
Click to show internal directories.
Click to hide internal directories.