feat: added modules

This commit is contained in:
Marvin Zhang
2024-06-14 16:37:48 +08:00
parent dc21bce11f
commit 6a60433d25
157 changed files with 5887 additions and 305 deletions

View File

@@ -3,7 +3,7 @@ package utils
import (
"github.com/apex/log"
"github.com/cenkalti/backoff/v4"
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"time"
)

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/crawlab-team/crawlab/core/sys_exec"
"github.com/crawlab-team/crawlab/db/mongo"
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"github.com/spf13/viper"
)

View File

@@ -1,7 +1,7 @@
package utils
import (
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"github.com/spf13/viper"
"go.uber.org/dig"
"os"

View File

@@ -9,7 +9,7 @@ import (
"github.com/crawlab-team/crawlab/core/constants"
"github.com/crawlab-team/crawlab/core/models/models"
"github.com/crawlab-team/crawlab/db/generic"
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"github.com/elastic/go-elasticsearch/v8"
"github.com/elastic/go-elasticsearch/v8/esapi"
"go.mongodb.org/mongo-driver/bson/primitive"

View File

@@ -1,10 +1,10 @@
package utils
import (
vcs "github.com/crawlab-team/crawlab-vcs"
"github.com/crawlab-team/crawlab/core/constants"
"github.com/crawlab-team/crawlab/core/interfaces"
"github.com/crawlab-team/crawlab/core/models/models"
vcs "github.com/crawlab-team/crawlab/vcs"
)
func InitGitClientAuth(g interfaces.Git, gitClient *vcs.GitClient) {

View File

@@ -1,7 +1,7 @@
package utils
import (
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"io"
"reflect"
"unsafe"

View File

@@ -3,7 +3,7 @@ package utils
import (
"github.com/crawlab-team/crawlab/core/constants"
"github.com/crawlab-team/crawlab/core/entity"
"github.com/crawlab-team/go-trace"
"github.com/crawlab-team/crawlab/trace"
"github.com/gin-gonic/gin"
"net/http"
)