예제 #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)}
}