示例#1
0
func NewTaskPipeline(pool db.DBPool) *TaskPipeline {
	dal := db.NewTaskDataAccess(pool)

	return &TaskPipeline{
		isOpen: true,
		dal:    dal,
	}
}
示例#2
0
func NewTaskAPI(pool db.DBPool) *TaskAPI {
	return &TaskAPI{db.NewTaskDataAccess(pool)}
}