Versions in this module Expand all Collapse all v0 v0.1.3 Dec 16, 2020 Changes in this version + const Finish + const Loaded + const Unload + var ErrRowsAffected = errors.New("rows affected is zero") + type Task struct + Content string + CreatedAt time.Time + FailedReason string + ID int + Params string + ParserFunction string + Remark string + Status string + Title string + UniqueKey string + UpdatedAt time.Time + Url string + func (t *Task) All(tx *gorm.DB) (task []Task) + func (t *Task) CountUnload(tx *gorm.DB) (count int64) + func (t *Task) GetUnFinished(tx *gorm.DB) (lines []Task, err error) + func (t *Task) Load(tx *gorm.DB) error + func (t *Task) Loaded2Unload(tx *gorm.DB) error + func (t *Task) SetLineFinished(tx *gorm.DB, updates map[string]interface{}) error + func (t *Task) Write(tx *gorm.DB) error + func (t Task) TableName() string