diff --git a/cmd/crawler/main.go b/cmd/crawler/main.go index f70c815..2042d79 100644 --- a/cmd/crawler/main.go +++ b/cmd/crawler/main.go @@ -3,16 +3,17 @@ package main import ( "context" "fmt" - "github/pippellia-btc/crawler/pkg/config" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/pipe" - "github/pippellia-btc/crawler/pkg/redb" "log" "os" "runtime" "sync" "time" + "github.com/vertex-lab/crawler_v2/pkg/config" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/pipe" + "github.com/vertex-lab/crawler_v2/pkg/redb" + "github.com/nbd-wtf/go-nostr" "github.com/redis/go-redis/v9" "github.com/vertex-lab/relay/pkg/eventstore" diff --git a/cmd/sync/main.go b/cmd/sync/main.go index 2f36903..fd64a60 100644 --- a/cmd/sync/main.go +++ b/cmd/sync/main.go @@ -3,16 +3,17 @@ package main import ( "context" "fmt" - "github/pippellia-btc/crawler/pkg/config" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/pipe" - "github/pippellia-btc/crawler/pkg/redb" "log" "os" "runtime" "sync" "time" + "github.com/vertex-lab/crawler_v2/pkg/config" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/pipe" + "github.com/vertex-lab/crawler_v2/pkg/redb" + "github.com/nbd-wtf/go-nostr" "github.com/redis/go-redis/v9" "github.com/vertex-lab/relay/pkg/eventstore" diff --git a/go.mod b/go.mod index 7113c47..9c50950 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github/pippellia-btc/crawler +module github.com/vertex-lab/crawler_v2 go 1.24.1 diff --git a/pkg/config/config.go b/pkg/config/config.go index c23d8c3..86dbdab 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github/pippellia-btc/crawler/pkg/pipe" + "github.com/vertex-lab/crawler_v2/pkg/pipe" _ "github.com/joho/godotenv/autoload" // autoloading .env "github.com/nbd-wtf/go-nostr" diff --git a/pkg/pagerank/pagerank.go b/pkg/pagerank/pagerank.go index 8ede934..1c518bf 100644 --- a/pkg/pagerank/pagerank.go +++ b/pkg/pagerank/pagerank.go @@ -6,9 +6,10 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "math/rand/v2" + + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) var ErrEmptyWalkStore = errors.New("the walk store is empty") diff --git a/pkg/pagerank/pagerank_test.go b/pkg/pagerank/pagerank_test.go index 4e2ecbc..f35d2cf 100644 --- a/pkg/pagerank/pagerank_test.go +++ b/pkg/pagerank/pagerank_test.go @@ -3,12 +3,13 @@ package pagerank import ( "context" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "math/rand/v2" "reflect" "strconv" "testing" + + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) func TestPersonalized(t *testing.T) { diff --git a/pkg/pipe/arbiter.go b/pkg/pipe/arbiter.go index fd667d2..2e97800 100644 --- a/pkg/pipe/arbiter.go +++ b/pkg/pipe/arbiter.go @@ -3,16 +3,17 @@ package pipe import ( "context" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/pagerank" - "github/pippellia-btc/crawler/pkg/redb" - "github/pippellia-btc/crawler/pkg/walks" "log" "os" "os/signal" "sync/atomic" "syscall" "time" + + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/pagerank" + "github.com/vertex-lab/crawler_v2/pkg/redb" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) // WalksTracker tracks the number of walks that have been updated by [Processor]. diff --git a/pkg/pipe/engine.go b/pkg/pipe/engine.go index 31f0e6c..9413e3a 100644 --- a/pkg/pipe/engine.go +++ b/pkg/pipe/engine.go @@ -6,13 +6,14 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/redb" - "github/pippellia-btc/crawler/pkg/walks" "log" "slices" "time" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/redb" + "github.com/vertex-lab/crawler_v2/pkg/walks" + "github.com/nbd-wtf/go-nostr" "github.com/vertex-lab/relay/pkg/eventstore" ) diff --git a/pkg/redb/graph.go b/pkg/redb/graph.go index bc7cc3a..1f20e0c 100644 --- a/pkg/redb/graph.go +++ b/pkg/redb/graph.go @@ -6,11 +6,12 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" "strconv" "strings" "time" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/nbd-wtf/go-nostr" "github.com/redis/go-redis/v9" ) diff --git a/pkg/redb/graph_test.go b/pkg/redb/graph_test.go index 5b175ad..154408a 100644 --- a/pkg/redb/graph_test.go +++ b/pkg/redb/graph_test.go @@ -3,13 +3,14 @@ package redb import ( "context" "errors" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/pagerank" - "github/pippellia-btc/crawler/pkg/walks" "reflect" "testing" "time" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/pagerank" + "github.com/vertex-lab/crawler_v2/pkg/walks" + "github.com/nbd-wtf/go-nostr" "github.com/redis/go-redis/v9" ) diff --git a/pkg/redb/utils.go b/pkg/redb/utils.go index 1f0560b..d36e591 100644 --- a/pkg/redb/utils.go +++ b/pkg/redb/utils.go @@ -4,11 +4,12 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "strconv" "strings" "time" + + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) var ( diff --git a/pkg/redb/walks.go b/pkg/redb/walks.go index 872bc83..1c415b6 100644 --- a/pkg/redb/walks.go +++ b/pkg/redb/walks.go @@ -5,11 +5,12 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "slices" "strconv" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" + "github.com/redis/go-redis/v9" ) diff --git a/pkg/redb/walks_test.go b/pkg/redb/walks_test.go index 8266c7e..fb54a42 100644 --- a/pkg/redb/walks_test.go +++ b/pkg/redb/walks_test.go @@ -2,12 +2,13 @@ package redb import ( "errors" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "reflect" "strconv" "testing" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" + "github.com/redis/go-redis/v9" ) diff --git a/pkg/walks/walker.go b/pkg/walks/walker.go index da13c29..4e47420 100644 --- a/pkg/walks/walker.go +++ b/pkg/walks/walker.go @@ -4,10 +4,11 @@ import ( "container/list" "context" "fmt" - "github/pippellia-btc/crawler/pkg/graph" "log" "os" "strconv" + + "github.com/vertex-lab/crawler_v2/pkg/graph" ) type Walker interface { diff --git a/pkg/walks/walker_test.go b/pkg/walks/walker_test.go index 90bfb0b..d63913c 100644 --- a/pkg/walks/walker_test.go +++ b/pkg/walks/walker_test.go @@ -4,11 +4,12 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" "math/rand/v2" "reflect" "strconv" "testing" + + "github.com/vertex-lab/crawler_v2/pkg/graph" ) var ctx = context.Background() diff --git a/pkg/walks/walks.go b/pkg/walks/walks.go index 79f71fe..70cb198 100644 --- a/pkg/walks/walks.go +++ b/pkg/walks/walks.go @@ -5,9 +5,10 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" "math/rand/v2" "slices" + + "github.com/vertex-lab/crawler_v2/pkg/graph" ) var ( diff --git a/pkg/walks/walks_test.go b/pkg/walks/walks_test.go index d1eff37..4e1044f 100644 --- a/pkg/walks/walks_test.go +++ b/pkg/walks/walks_test.go @@ -4,11 +4,12 @@ import ( "context" "errors" "fmt" - "github/pippellia-btc/crawler/pkg/graph" "math" "reflect" "strconv" "testing" + + "github.com/vertex-lab/crawler_v2/pkg/graph" ) func TestGenerate(t *testing.T) { diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 466ed2a..e51c4ab 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -3,14 +3,15 @@ package e2e_test import ( "context" "fmt" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/pagerank" - "github/pippellia-btc/crawler/pkg/redb" - "github/pippellia-btc/crawler/pkg/walks" - test "github/pippellia-btc/crawler/tests/random" "math" "testing" + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/pagerank" + "github.com/vertex-lab/crawler_v2/pkg/redb" + "github.com/vertex-lab/crawler_v2/pkg/walks" + test "github.com/vertex-lab/crawler_v2/tests/random" + "github.com/redis/go-redis/v9" ) diff --git a/tests/random/pagerank_test.go b/tests/random/pagerank_test.go index cc813a7..8395fed 100644 --- a/tests/random/pagerank_test.go +++ b/tests/random/pagerank_test.go @@ -2,10 +2,11 @@ package random import ( "context" - "github/pippellia-btc/crawler/pkg/pagerank" - "github/pippellia-btc/crawler/pkg/walks" "math/rand/v2" "testing" + + "github.com/vertex-lab/crawler_v2/pkg/pagerank" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) func TestPagerankStatic(t *testing.T) { diff --git a/tests/random/utils.go b/tests/random/utils.go index 02a45de..2c2fa4e 100644 --- a/tests/random/utils.go +++ b/tests/random/utils.go @@ -2,10 +2,11 @@ package random import ( "context" - "github/pippellia-btc/crawler/pkg/graph" - "github/pippellia-btc/crawler/pkg/walks" "math" "strconv" + + "github.com/vertex-lab/crawler_v2/pkg/graph" + "github.com/vertex-lab/crawler_v2/pkg/walks" ) type WalkStore struct {