Documentation ¶
Index ¶
- Constants
- func IsDiffMinLastPublish(nowtime time.Time, period time.Duration) bool
- func IsDiffMinTimeWithTask(taskname string, nowtime time.Time, period time.Duration) bool
- func IsSameMinTime(time1, time2 int64) bool
- func ListHosts() (string, error)
- func ListRouteTable() (string, error)
- func ReadTimeFromDB(timekey string) (int64, error)
- func RecordPublishTime(time int64) error
- func RecordTaskPublishTime(taskname, time string) error
- type Crontab
Constants ¶
View Source
const CRONTAB_PATH = "/var/spool/cron/"
View Source
const (
LastPublishTime = "last_publish_time"
)
Variables ¶
This section is empty.
Functions ¶
func IsDiffMinTimeWithTask ¶
true为相差大于等于1min,false为相差小于1min
func ListRouteTable ¶
func RecordPublishTime ¶
func RecordTaskPublishTime ¶
将最后一次上报时间写入到持久化存储中
Types ¶
Click to show internal directories.
Click to hide internal directories.