Documentation ¶
Index ¶
Constants ¶
View Source
const ( // URLTaskStatusInit 任务状态初始值, 0 URLTaskStatusInit = iota // URLTaskStatusPending 从队列中取出, 未出结果时的状态. URLTaskStatusPending // URLTaskStatusSuccess 任务状态成功, 2 URLTaskStatusSuccess // URLTaskStatusFailed 任务状态失败(404), 3 URLTaskStatusFailed )
View Source
const ( URLTypePage int = iota URLTypeAsset )
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdateURLRecord ¶
AddOrUpdateURLRecord 任务入队列时添加URLRecord新记录(如果已存在则更新failed_times和status字段)
Types ¶
Click to show internal directories.
Click to hide internal directories.