Documentation
¶
Index ¶
Constants ¶
View Source
const ( CronExpHeartbeat = "*/16 * * * * ?" CronExpSyncSchedule = "*/18 * * * * ?" CronExpWatchDied = "*/32 * * * * ?" )
Variables ¶
This section is empty.
Functions ¶
func RegisterListener ¶
func RegisterListener(ltn Listener)
func RegisterSchedule ¶
func RegisterSchedule(req *ScheduleIO) (schedule.ID, *errors.Error)
Types ¶
type ScheduleIO ¶
type ScheduleIO struct { Title string `json:"title"` Code string `json:"code"` OutID string `json:"out_id"` Cron schedule.Cron `json:"cron"` Topic string `json:"topic"` Payload *def.Payload `json:"payload"` Signature string `json:"signature"` }
func (*ScheduleIO) Verify ¶
func (req *ScheduleIO) Verify() *errors.Error
Click to show internal directories.
Click to hide internal directories.