Documentation ¶
Index ¶
- func PromError(name string)
- func PromInfo(name string)
- type Dao
- func (d *Dao) AddTask(ctx context.Context, t *pushmdl.Task) (err error)
- func (d *Dao) BeginTx(c context.Context) (*xsql.Tx, error)
- func (d *Dao) Close()
- func (d *Dao) DelCallbacks(c context.Context, t time.Time, limit int) (rows int64, err error)
- func (d *Dao) DelTasks(c context.Context, t time.Time, limit int) (rows int64, err error)
- func (d *Dao) DpCheckJob(ctx context.Context, url string) (res *model.DpCheckJobResult, err error)
- func (d *Dao) DpDownloadFile(ctx context.Context, url string) (content []byte, err error)
- func (d *Dao) DpSubmitQuery(ctx context.Context, query string) (statusRUL string, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) ReportLastID(c context.Context) (id int64, err error)
- func (d *Dao) ReportsByRange(c context.Context, min, max int64) (rs []*pushmdl.Report, err error)
- func (d *Dao) ReportsCacheByMids(c context.Context, mids []int64) (res map[int64][]*pushmdl.Report, missed []int64, err error)
- func (d *Dao) ReportsTaskAll(c context.Context, min, max, app int64) (rows *xsql.Rows, err error)
- func (d *Dao) SendWechat(content string) (err error)
- func (d *Dao) TxCondByStatus(tx *xsql.Tx, status int) (cond *pamdl.DPCondition, err error)
- func (d *Dao) TxTaskByStatus(tx *xsql.Tx, status int8) (t *pushmdl.Task, err error)
- func (d *Dao) TxUpdateCondStatus(tx *xsql.Tx, id int64, status int) (err error)
- func (d *Dao) TxUpdateTaskStatus(tx *xsql.Tx, taskID string, status int8) (err error)
- func (d *Dao) UpdateDpCond(ctx context.Context, cond *pamdl.DPCondition) (err error)
- func (d *Dao) UpdateDpCondStatus(ctx context.Context, id int64, status int) (err error)
- func (d *Dao) UpdateTask(c context.Context, taskID string, file string, status int8) (err error)
- func (d *Dao) UpdateTaskStatus(c context.Context, taskID int64, status int8) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao .
func (*Dao) DelCallbacks ¶
DelCallbacks deletes callbacks.
func (*Dao) DpCheckJob ¶
DpCheckJob .
func (*Dao) DpDownloadFile ¶
DpDownloadFile .
func (*Dao) DpSubmitQuery ¶
DpSubmitQuery .
func (*Dao) ReportLastID ¶
ReportLastID gets the latest ID of report database record.
func (*Dao) ReportsByRange ¶
ReportsByRange gets reports by id range.
func (*Dao) ReportsCacheByMids ¶
func (d *Dao) ReportsCacheByMids(c context.Context, mids []int64) (res map[int64][]*pushmdl.Report, missed []int64, err error)
ReportsCacheByMids get report cache by mids.
func (*Dao) ReportsTaskAll ¶
ReportsTaskAll gets reports by range
func (*Dao) TxCondByStatus ¶
TxCondByStatus gets condition by status.
func (*Dao) TxTaskByStatus ¶
TxTaskByStatus gets task by status by tx.
func (*Dao) TxUpdateCondStatus ¶
TxUpdateCondStatus update data platform query condition status
func (*Dao) TxUpdateTaskStatus ¶
TxUpdateTaskStatus updates task status by tx.
func (*Dao) UpdateDpCond ¶
UpdateDpCond update data platform query condition
func (*Dao) UpdateDpCondStatus ¶
UpdateDpCondStatus update data platform query condition
func (*Dao) UpdateTask ¶
UpdateTask update task.
Click to show internal directories.
Click to hide internal directories.