Documentation ¶
Overview ¶
构建索引
Author: Aosen Data: 2016-2-2 Desc: novel 任务列表 golang下有大神提供的cron库, go下的cron库使用的是 github.com/robfig/cron, 最终使用的是 github.com/jakecoffman/cron, 后者也是前者的改进版,主要增加了个RemoveJob的函数来移除特定的任务。 http://ju.outofmemory.cn/entry/65356
使用示例:
c := cron.New() spec := "*/5 * * * * ?" c.AddFunc(spec, func() { i++ log.Println("cron running:", i) }) c.Start()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexTask ¶
type IndexTask struct {
// contains filtered or unexported fields
}
func NewIndexTask ¶
type ManagementCenter ¶
type RankTask ¶
type RankTask struct { }
func NewRankTask ¶
func NewRankTask() *RankTask
func (*RankTask) CollectRank ¶
func (self *RankTask) CollectRank()
Click to show internal directories.
Click to hide internal directories.