dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (d *Dao)

func (*Dao) AddTaskInfoCache

func (d *Dao) AddTaskInfoCache(c context.Context, mid int64, ti *model.TaskInfo) (err error)

AddTaskInfoCache add taskInfo cache

func (*Dao) BeginTran

func (d *Dao) BeginTran(c context.Context) (*xsql.Tx, error)

BeginTran BeginTran.

func (*Dao) Close

func (d *Dao) Close()

func (*Dao) DetailTask

func (d *Dao) DetailTask(c context.Context, taskID int64) (t *model.Task, err error)

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

func (*Dao) QueryTaskID

func (d *Dao) QueryTaskID(c context.Context, mid int64) (taskID int64, err error)

func (*Dao) QueryUndoneTaskInfo

func (d *Dao) QueryUndoneTaskInfo(c context.Context, mid int64) (t *model.TaskInfo, err error)

func (*Dao) RemoveTaskInfoCache

func (d *Dao) RemoveTaskInfoCache(c context.Context, mid int64) (err error)

RemoveTaskInfoCache remove taskInfo cache

func (*Dao) SendEmail

func (d *Dao) SendEmail(subject string, to string, body string) (err error)

func (*Dao) TaskInfoCache

func (d *Dao) TaskInfoCache(c context.Context, mid int64) (ti *model.TaskInfo, err error)

TaskInfoCache get taskInfo cache

func (*Dao) TxAddTaskLog

func (d *Dao) TxAddTaskLog(c context.Context, tx *xsql.Tx, taskID int64, mid int64, build string, platform int, taskState int, reason string) (insertID int64, err error)

func (*Dao) TxUpdateTaskState

func (d *Dao) TxUpdateTaskState(c context.Context, tx *xsql.Tx, state int, taskID int64) (rows int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL