Skip to content

Commit dc21bce

Browse files
committed
feat: added modules
1 parent 0b67fd9 commit dc21bce

138 files changed

Lines changed: 3231 additions & 120 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/controllers/base_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package controllers
22

33
import (
44
"errors"
5-
"github.com/crawlab-team/crawlab-db/mongo"
65
"github.com/crawlab-team/crawlab/core/interfaces"
76
"github.com/crawlab-team/crawlab/core/models/service"
7+
"github.com/crawlab-team/crawlab/db/mongo"
88
"github.com/gin-gonic/gin"
99
"go.mongodb.org/mongo-driver/bson"
1010
"go.mongodb.org/mongo-driver/bson/primitive"

core/controllers/base_v2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"net/http/httptest"
1515
"testing"
1616

17-
"github.com/crawlab-team/crawlab-db/mongo"
17+
"github.com/crawlab-team/crawlab/db/mongo"
1818
"github.com/gin-gonic/gin"
1919
"github.com/stretchr/testify/assert"
2020
)

core/controllers/data_collection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/mongo"
54
"github.com/crawlab-team/crawlab/core/container"
65
"github.com/crawlab-team/crawlab/core/interfaces"
76
"github.com/crawlab-team/crawlab/core/models/service"
7+
"github.com/crawlab-team/crawlab/db/mongo"
88
"github.com/gin-gonic/gin"
99
"go.mongodb.org/mongo-driver/bson/primitive"
1010
mongo2 "go.mongodb.org/mongo-driver/mongo"

core/controllers/data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/mongo"
54
"github.com/crawlab-team/crawlab/core/ds"
65
"github.com/crawlab-team/crawlab/core/errors"
76
"github.com/crawlab-team/crawlab/core/interfaces"
@@ -10,6 +9,7 @@ import (
109
"github.com/crawlab-team/crawlab/core/models/models"
1110
"github.com/crawlab-team/crawlab/core/models/service"
1211
"github.com/crawlab-team/crawlab/core/utils"
12+
"github.com/crawlab-team/crawlab/db/mongo"
1313
"github.com/crawlab-team/go-trace"
1414
"github.com/gin-gonic/gin"
1515
"go.mongodb.org/mongo-driver/bson/primitive"

core/controllers/delegate_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package controllers
22

33
import (
44
"github.com/apex/log"
5-
"github.com/crawlab-team/crawlab-db/mongo"
65
"github.com/crawlab-team/crawlab/core/errors"
76
"github.com/crawlab-team/crawlab/core/interfaces"
87
"github.com/crawlab-team/crawlab/core/models/delegate"
98
"github.com/crawlab-team/crawlab/core/utils"
9+
"github.com/crawlab-team/crawlab/db/mongo"
1010
"github.com/crawlab-team/go-trace"
1111
"github.com/gin-gonic/gin"
1212
"go.mongodb.org/mongo-driver/bson"

core/controllers/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/mongo"
54
"github.com/crawlab-team/crawlab/core/entity"
5+
"github.com/crawlab-team/crawlab/db/mongo"
66
"github.com/gin-gonic/gin"
77
"go.mongodb.org/mongo-driver/bson"
88
mongo2 "go.mongodb.org/mongo-driver/mongo"

core/controllers/filter_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/mongo"
54
"github.com/crawlab-team/crawlab/core/entity"
5+
"github.com/crawlab-team/crawlab/db/mongo"
66
"github.com/gin-gonic/gin"
77
"go.mongodb.org/mongo-driver/bson"
88
mongo2 "go.mongodb.org/mongo-driver/mongo"

core/controllers/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/generic"
54
"github.com/crawlab-team/crawlab/core/models/models"
65
"github.com/crawlab-team/crawlab/core/models/service"
76
"github.com/crawlab-team/crawlab/core/result"
87
"github.com/crawlab-team/crawlab/core/utils"
8+
"github.com/crawlab-team/crawlab/db/generic"
99
"github.com/gin-gonic/gin"
1010
"go.mongodb.org/mongo-driver/bson"
1111
"go.mongodb.org/mongo-driver/bson/primitive"

core/controllers/result_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package controllers
22

33
import (
4-
"github.com/crawlab-team/crawlab-db/generic"
54
"github.com/crawlab-team/crawlab/core/models/models"
65
"github.com/crawlab-team/crawlab/core/models/service"
76
"github.com/crawlab-team/crawlab/core/result"
87
"github.com/crawlab-team/crawlab/core/utils"
8+
"github.com/crawlab-team/crawlab/db/generic"
99
"github.com/gin-gonic/gin"
1010
"go.mongodb.org/mongo-driver/bson"
1111
"go.mongodb.org/mongo-driver/bson/primitive"

core/controllers/spider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package controllers
33
import (
44
"bytes"
55
"fmt"
6-
"github.com/crawlab-team/crawlab-db/mongo"
76
vcs "github.com/crawlab-team/crawlab-vcs"
87
"github.com/crawlab-team/crawlab/core/constants"
98
"github.com/crawlab-team/crawlab/core/container"
@@ -15,6 +14,7 @@ import (
1514
"github.com/crawlab-team/crawlab/core/models/models"
1615
"github.com/crawlab-team/crawlab/core/models/service"
1716
"github.com/crawlab-team/crawlab/core/utils"
17+
"github.com/crawlab-team/crawlab/db/mongo"
1818
"github.com/crawlab-team/go-trace"
1919
"github.com/gin-gonic/gin"
2020
"github.com/go-git/go-git/v5"

0 commit comments

Comments
 (0)