Commit 11fcecd 1 parent ec556e7 commit 11fcecd Copy full SHA for 11fcecd
File tree 11 files changed +21
-21
lines changed
11 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
package cmd
2
2
3
3
import (
4
- "github.com/hiago-balbino/web-crawler/internal/handler"
4
+ "github.com/hiago-balbino/web-crawler/v2/ internal/handler"
5
5
"github.com/spf13/cobra"
6
6
)
7
7
Original file line number Diff line number Diff line change 1
1
package cmd
2
2
3
3
import (
4
- "github.com/hiago-balbino/web-crawler/config"
4
+ "github.com/hiago-balbino/web-crawler/v2/ config"
5
5
"github.com/spf13/cobra"
6
6
)
7
7
Original file line number Diff line number Diff line change 1
- module github.com/hiago-balbino/web-crawler
1
+ module github.com/hiago-balbino/web-crawler/v2
2
2
3
3
go 1.22
4
4
Original file line number Diff line number Diff line change 6
6
"sync"
7
7
"time"
8
8
9
- "github.com/hiago-balbino/web-crawler/internal/core/pager"
10
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
11
- "github.com/hiago-balbino/web-crawler/internal/pkg/metrics"
9
+ "github.com/hiago-balbino/web-crawler/v2/ internal/core/pager"
10
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
11
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/metrics"
12
12
"golang.org/x/net/html"
13
13
)
14
14
Original file line number Diff line number Diff line change 5
5
"errors"
6
6
"testing"
7
7
8
- "github.com/hiago-balbino/web-crawler/test/mocks"
8
+ "github.com/hiago-balbino/web-crawler/v2/ test/mocks"
9
9
"github.com/stretchr/testify/assert"
10
10
"golang.org/x/net/html"
11
11
)
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package pager
3
3
import (
4
4
"net/http"
5
5
6
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
6
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
7
7
"golang.org/x/net/html"
8
8
)
9
9
Original file line number Diff line number Diff line change 4
4
"net/http"
5
5
6
6
"github.com/gin-gonic/gin"
7
- core "github.com/hiago-balbino/web-crawler/internal/core/crawler"
8
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
7
+ core "github.com/hiago-balbino/web-crawler/v2/ internal/core/crawler"
8
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
9
9
)
10
10
11
11
type Handler struct {
Original file line number Diff line number Diff line change 8
8
9
9
"github.com/gavv/httpexpect/v2"
10
10
"github.com/gin-gonic/gin"
11
- "github.com/hiago-balbino/web-crawler/internal/core/crawler"
12
- "github.com/hiago-balbino/web-crawler/test/mocks"
11
+ core "github.com/hiago-balbino/web-crawler/v2 /internal/core/crawler"
12
+ "github.com/hiago-balbino/web-crawler/v2/ test/mocks"
13
13
"github.com/stretchr/testify/mock"
14
14
)
15
15
@@ -124,7 +124,7 @@ func TestIndex(t *testing.T) {
124
124
})
125
125
}
126
126
127
- func setupHandler (service crawler .CrawlerUsecase ) * gin.Engine {
127
+ func setupHandler (service core .CrawlerUsecase ) * gin.Engine {
128
128
handler := NewHandler (service )
129
129
server := Server {handler : handler }
130
130
router := server .setupRoutes ("../../web/templates/*" )
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ import (
6
6
"net/http"
7
7
8
8
"github.com/gin-gonic/gin"
9
- "github.com/hiago-balbino/web-crawler/config"
10
- "github.com/hiago-balbino/web-crawler/internal/core/crawler"
11
- "github.com/hiago-balbino/web-crawler/internal/core/pager"
12
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
13
- "github.com/hiago-balbino/web-crawler/internal/repository/storage"
9
+ "github.com/hiago-balbino/web-crawler/v2/ config"
10
+ "github.com/hiago-balbino/web-crawler/v2/ internal/core/crawler"
11
+ "github.com/hiago-balbino/web-crawler/v2/ internal/core/pager"
12
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
13
+ "github.com/hiago-balbino/web-crawler/v2/ internal/repository/storage"
14
14
"github.com/penglongli/gin-metrics/ginmetrics"
15
15
"github.com/spf13/viper"
16
16
)
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"net"
7
7
8
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
8
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
9
9
"github.com/spf13/viper"
10
10
"go.mongodb.org/mongo-driver/bson"
11
11
"go.mongodb.org/mongo-driver/mongo"
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "github.com/hiago-balbino/web-crawler/cmd"
5
- "github.com/hiago-balbino/web-crawler/internal/pkg/logger"
4
+ "github.com/hiago-balbino/web-crawler/v2/ cmd"
5
+ "github.com/hiago-balbino/web-crawler/v2/ internal/pkg/logger"
6
6
)
7
7
8
8
func main () {
You can’t perform that action at this time.
0 commit comments