Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddTaskInfoCache(c context.Context, mid int64, ti *model.TaskInfo) (err error)
- func (d *Dao) BeginTran(c context.Context) (*xsql.Tx, error)
- func (d *Dao) Close()
- func (d *Dao) DetailTask(c context.Context, taskID int64) (t *model.Task, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) QueryTaskID(c context.Context, mid int64) (taskID int64, err error)
- func (d *Dao) QueryUndoneTaskInfo(c context.Context, mid int64) (t *model.TaskInfo, err error)
- func (d *Dao) RemoveTaskInfoCache(c context.Context, mid int64) (err error)
- func (d *Dao) SendEmail(subject string, to string, body string) (err error)
- func (d *Dao) TaskInfoCache(c context.Context, mid int64) (ti *model.TaskInfo, err error)
- func (d *Dao) TxAddTaskLog(c context.Context, tx *xsql.Tx, taskID int64, mid int64, build string, ...) (insertID int64, err error)
- func (d *Dao) TxUpdateTaskState(c context.Context, tx *xsql.Tx, state int, taskID int64) (rows int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) AddTaskInfoCache ¶
AddTaskInfoCache add taskInfo cache
func (*Dao) DetailTask ¶
func (*Dao) QueryTaskID ¶
func (*Dao) QueryUndoneTaskInfo ¶
func (*Dao) RemoveTaskInfoCache ¶
RemoveTaskInfoCache remove taskInfo cache
func (*Dao) TaskInfoCache ¶
TaskInfoCache get taskInfo cache
func (*Dao) TxAddTaskLog ¶
Click to show internal directories.
Click to hide internal directories.