diff --git a/event/chanqueue.go b/event/chanqueue.go index e32f95a..0ad5e8e 100644 --- a/event/chanqueue.go +++ b/event/chanqueue.go @@ -3,7 +3,7 @@ package event import ( "context" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/util" ) // ChanQueue is a trivial queue implementation using a channel diff --git a/examples/connect/findpeer.go b/examples/connect/findpeer.go index c7db36d..615171b 100644 --- a/examples/connect/findpeer.go +++ b/examples/connect/findpeer.go @@ -9,15 +9,15 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "github.com/multiformats/go-multiaddr" - "github.com/plprobelab/go-kademlia/event" - tutil "github.com/plprobelab/go-kademlia/examples/util" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/libp2p" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/query/simplequery" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + tutil "github.com/probe-lab/go-kademlia/examples/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/libp2p" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/query/simplequery" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/util" ) var protocolID address.ProtocolID = "/ipfs/kad/1.0.0" // IPFS DHT network protocol ID diff --git a/examples/dispatchquery/main.go b/examples/dispatchquery/main.go index 9907693..27c81c4 100644 --- a/examples/dispatchquery/main.go +++ b/examples/dispatchquery/main.go @@ -16,15 +16,15 @@ import ( "go.opentelemetry.io/otel/sdk/trace" semconv "go.opentelemetry.io/otel/semconv/v1.17.0" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/libp2p" - sq "github.com/plprobelab/go-kademlia/query/simplequery" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/server/basicserver" - "github.com/plprobelab/go-kademlia/sim" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/libp2p" + sq "github.com/probe-lab/go-kademlia/query/simplequery" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/server/basicserver" + "github.com/probe-lab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/util" ) const ( diff --git a/examples/fullsim/findnode.go b/examples/fullsim/findnode.go index e207077..c49935b 100644 --- a/examples/fullsim/findnode.go +++ b/examples/fullsim/findnode.go @@ -8,17 +8,17 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - sq "github.com/plprobelab/go-kademlia/query/simplequery" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/server" - "github.com/plprobelab/go-kademlia/sim" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + sq "github.com/probe-lab/go-kademlia/query/simplequery" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/server" + "github.com/probe-lab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/util" ) const ( diff --git a/go.mod b/go.mod index 401a5f5..cd66e24 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/plprobelab/go-kademlia +module github.com/probe-lab/go-kademlia go 1.21 diff --git a/internal/kadtest/ids.go b/internal/kadtest/ids.go index 6ce09dd..dab0fcc 100644 --- a/internal/kadtest/ids.go +++ b/internal/kadtest/ids.go @@ -4,8 +4,8 @@ import ( "crypto/sha256" "net" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) // ID is a concrete implementation of the NodeID interface. diff --git a/internal/kadtest/message.go b/internal/kadtest/message.go index 05071ce..464c5a3 100644 --- a/internal/kadtest/message.go +++ b/internal/kadtest/message.go @@ -1,8 +1,8 @@ package kadtest import ( - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) // StrAddr is a simple implementation of kad.Address that uses a string to represent the address. diff --git a/internal/kadtest/rand.go b/internal/kadtest/rand.go index 7c4be43..0917160 100644 --- a/internal/kadtest/rand.go +++ b/internal/kadtest/rand.go @@ -4,7 +4,7 @@ import ( "math/rand" "strconv" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/key" ) var rng = rand.New(rand.NewSource(299792458)) diff --git a/key/key.go b/key/key.go index d75a503..a004203 100644 --- a/key/key.go +++ b/key/key.go @@ -7,7 +7,7 @@ import ( "fmt" "math" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) // ErrInvalidDataLength is the error returned when attempting to construct a key from binary data of the wrong length. diff --git a/key/key_test.go b/key/key_test.go index 86b6baa..69bd036 100644 --- a/key/key_test.go +++ b/key/key_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) func TestKey256(t *testing.T) { diff --git a/key/op.go b/key/op.go index 2c5507e..32e75d3 100644 --- a/key/op.go +++ b/key/op.go @@ -4,7 +4,7 @@ import ( "sort" "strings" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) // Equal reports whether two keys have equal numeric values. diff --git a/key/trie/trie.go b/key/trie/trie.go index e4550e2..e0f12a8 100644 --- a/key/trie/trie.go +++ b/key/trie/trie.go @@ -2,8 +2,8 @@ package trie import ( - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) // Trie is a trie for equal-length bit vectors, which stores values only in the leaves. diff --git a/key/trie/trie_test.go b/key/trie/trie_test.go index e310b9e..7ae5f69 100644 --- a/key/trie/trie_test.go +++ b/key/trie/trie_test.go @@ -4,10 +4,10 @@ import ( "math/rand" "testing" - "github.com/plprobelab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" "github.com/stretchr/testify/require" ) diff --git a/libp2p/addrinfo.go b/libp2p/addrinfo.go index 2f218c6..bd384a4 100644 --- a/libp2p/addrinfo.go +++ b/libp2p/addrinfo.go @@ -4,8 +4,8 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "github.com/multiformats/go-multiaddr" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) type AddrInfo struct { diff --git a/libp2p/helpers.go b/libp2p/helpers.go index b5a645b..cd8e821 100644 --- a/libp2p/helpers.go +++ b/libp2p/helpers.go @@ -6,9 +6,9 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "github.com/multiformats/go-multiaddr" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/endpoint" ) var ErrNoValidAddresses = errors.New("no valid addresses") diff --git a/libp2p/helpers_test.go b/libp2p/helpers_test.go index 63b43f3..81c57ce 100644 --- a/libp2p/helpers_test.go +++ b/libp2p/helpers_test.go @@ -10,9 +10,9 @@ import ( "github.com/multiformats/go-multiaddr" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/sim" ) var ( diff --git a/libp2p/libp2pendpoint.go b/libp2p/libp2pendpoint.go index a0f0465..20e958d 100644 --- a/libp2p/libp2pendpoint.go +++ b/libp2p/libp2pendpoint.go @@ -17,12 +17,12 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/util" ) type DialReportFn func(context.Context, bool) diff --git a/libp2p/libp2pendpoint_test.go b/libp2p/libp2pendpoint_test.go index 6a06390..0f6ebc9 100644 --- a/libp2p/libp2pendpoint_test.go +++ b/libp2p/libp2pendpoint_test.go @@ -15,13 +15,13 @@ import ( manet "github.com/multiformats/go-multiaddr/net" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/sim" ) var ( diff --git a/libp2p/peerid.go b/libp2p/peerid.go index 59f9179..1ae7599 100644 --- a/libp2p/peerid.go +++ b/libp2p/peerid.go @@ -5,8 +5,8 @@ import ( mh "github.com/multiformats/go-multihash" mhreg "github.com/multiformats/go-multihash/core" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) type PeerID struct { diff --git a/libp2p/proto_msg.go b/libp2p/proto_msg.go index 877b8c7..fd127c0 100644 --- a/libp2p/proto_msg.go +++ b/libp2p/proto_msg.go @@ -3,7 +3,7 @@ package libp2p import ( "google.golang.org/protobuf/proto" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) type ProtoKadMessage interface { diff --git a/libp2p/query_test.go b/libp2p/query_test.go index 4c2e77a..137b5a9 100644 --- a/libp2p/query_test.go +++ b/libp2p/query_test.go @@ -11,14 +11,14 @@ import ( "github.com/multiformats/go-multiaddr" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/query/simplequery" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/query/simplequery" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/sim" ) // TestLibp2pCornerCase tests that the newRequest(ctx) can fail fast if the diff --git a/network/endpoint/endpoint.go b/network/endpoint/endpoint.go index 3724bb4..477fc09 100644 --- a/network/endpoint/endpoint.go +++ b/network/endpoint/endpoint.go @@ -4,8 +4,8 @@ import ( "context" "time" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/network/address" ) // Connectedness signals the capacity for a connection with a given node. diff --git a/query/iter.go b/query/iter.go index eaa11b9..135ce84 100644 --- a/query/iter.go +++ b/query/iter.go @@ -3,9 +3,9 @@ package query import ( "context" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/key/trie" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/key/trie" ) // A NodeIter iterates nodes according to some strategy. diff --git a/query/iter_test.go b/query/iter_test.go index 6cecb29..5e8079e 100644 --- a/query/iter_test.go +++ b/query/iter_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/key" ) func TestClosestNodesIter(t *testing.T) { diff --git a/query/node.go b/query/node.go index 0fd5960..2efbbdf 100644 --- a/query/node.go +++ b/query/node.go @@ -3,7 +3,7 @@ package query import ( "time" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) type NodeStatus[K kad.Key[K]] struct { diff --git a/query/pool.go b/query/pool.go index 7e6a469..b2ce63d 100644 --- a/query/pool.go +++ b/query/pool.go @@ -7,10 +7,10 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/kaderr" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kaderr" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/util" ) type Pool[K kad.Key[K], A kad.Address[A]] struct { diff --git a/query/pool_test.go b/query/pool_test.go index 3e8da96..381ae57 100644 --- a/query/pool_test.go +++ b/query/pool_test.go @@ -7,10 +7,10 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" ) func TestPoolConfigValidate(t *testing.T) { diff --git a/query/query.go b/query/query.go index f637f21..da1e6f6 100644 --- a/query/query.go +++ b/query/query.go @@ -7,11 +7,11 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/kaderr" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kaderr" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/util" ) type QueryID string diff --git a/query/query_test.go b/query/query_test.go index 25760c1..8d85451 100644 --- a/query/query_test.go +++ b/query/query_test.go @@ -8,10 +8,10 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" ) func TestQueryConfigValidate(t *testing.T) { diff --git a/query/simplequery/options.go b/query/simplequery/options.go index a86998c..ea1f63d 100644 --- a/query/simplequery/options.go +++ b/query/simplequery/options.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" ) // Config is a structure containing all the options that can be used when diff --git a/query/simplequery/peerlist.go b/query/simplequery/peerlist.go index c8cdce5..eea7f43 100644 --- a/query/simplequery/peerlist.go +++ b/query/simplequery/peerlist.go @@ -3,9 +3,9 @@ package simplequery import ( "sort" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/endpoint" ) type NodeStatus uint8 diff --git a/query/simplequery/peerlist_test.go b/query/simplequery/peerlist_test.go index 820d466..b1d1956 100644 --- a/query/simplequery/peerlist_test.go +++ b/query/simplequery/peerlist_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/sim" ) func TestAddPeers(t *testing.T) { diff --git a/query/simplequery/query.go b/query/simplequery/query.go index 7d6dda7..17701dd 100644 --- a/query/simplequery/query.go +++ b/query/simplequery/query.go @@ -9,12 +9,12 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/util" ) // note that the returned []kad.NodeID are expected to be of the same type diff --git a/query/simplequery/query_test.go b/query/simplequery/query_test.go index e5c52f0..0de91c8 100644 --- a/query/simplequery/query_test.go +++ b/query/simplequery/query_test.go @@ -11,14 +11,14 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/server" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/server" + "github.com/probe-lab/go-kademlia/sim" ) // has dependency on basicserver which has dependecny on libp2p -> commented out diff --git a/routing/bootstrap.go b/routing/bootstrap.go index 96e0a4d..e3836b1 100644 --- a/routing/bootstrap.go +++ b/routing/bootstrap.go @@ -7,11 +7,11 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/kaderr" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/query" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kaderr" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/query" + "github.com/probe-lab/go-kademlia/util" ) type Bootstrap[K kad.Key[K], A kad.Address[A]] struct { diff --git a/routing/bootstrap_test.go b/routing/bootstrap_test.go index 43dddf7..3decc16 100644 --- a/routing/bootstrap_test.go +++ b/routing/bootstrap_test.go @@ -7,11 +7,11 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/query" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/query" ) func TestBootstrapConfigValidate(t *testing.T) { diff --git a/routing/include.go b/routing/include.go index cab122a..d5c8712 100644 --- a/routing/include.go +++ b/routing/include.go @@ -7,10 +7,10 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/kaderr" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kaderr" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/util" ) type check[K kad.Key[K], A kad.Address[A]] struct { diff --git a/routing/include_test.go b/routing/include_test.go index dc2c88c..eed63b7 100644 --- a/routing/include_test.go +++ b/routing/include_test.go @@ -7,10 +7,10 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/routing/simplert" ) func TestIncludeConfigValidate(t *testing.T) { diff --git a/routing/probe.go b/routing/probe.go index cc755be..8e9b821 100644 --- a/routing/probe.go +++ b/routing/probe.go @@ -10,10 +10,10 @@ import ( "github.com/benbjohnson/clock" "go.opentelemetry.io/otel/attribute" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/kaderr" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kaderr" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/util" ) type RoutingTableCpl[K kad.Key[K], N kad.NodeID[K]] interface { diff --git a/routing/probe_test.go b/routing/probe_test.go index 4e2987d..1707416 100644 --- a/routing/probe_test.go +++ b/routing/probe_test.go @@ -9,10 +9,10 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/routing/simplert" ) var _ heap.Interface = (*nodeValuePendingList[key.Key8])(nil) diff --git a/routing/simplert/table.go b/routing/simplert/table.go index cd4e367..1a24096 100644 --- a/routing/simplert/table.go +++ b/routing/simplert/table.go @@ -4,10 +4,10 @@ import ( "sort" "sync" - "github.com/plprobelab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) type peerInfo[K kad.Key[K], N kad.NodeID[K]] struct { diff --git a/routing/simplert/table_test.go b/routing/simplert/table_test.go index 8fb87cf..e9e9060 100644 --- a/routing/simplert/table_test.go +++ b/routing/simplert/table_test.go @@ -7,10 +7,10 @@ import ( "testing" "github.com/libp2p/go-libp2p/core/peer" - "github.com/plprobelab/go-kademlia/libp2p" + "github.com/probe-lab/go-kademlia/libp2p" - kt "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/key" + kt "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/key" "github.com/stretchr/testify/require" ) diff --git a/routing/triert/config.go b/routing/triert/config.go index 5bc5baa..2f68620 100644 --- a/routing/triert/config.go +++ b/routing/triert/config.go @@ -1,7 +1,7 @@ package triert import ( - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) // Config holds configuration options for a TrieRT. diff --git a/routing/triert/filter.go b/routing/triert/filter.go index c7638de..8ee4bbb 100644 --- a/routing/triert/filter.go +++ b/routing/triert/filter.go @@ -1,6 +1,6 @@ package triert -import "github.com/plprobelab/go-kademlia/kad" +import "github.com/probe-lab/go-kademlia/kad" // KeyFilterFunc is a function that is applied before a key is added to the table. // Return false to prevent the key from being added. diff --git a/routing/triert/filter_test.go b/routing/triert/filter_test.go index 7277398..8f67789 100644 --- a/routing/triert/filter_test.go +++ b/routing/triert/filter_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/key" "github.com/stretchr/testify/require" ) diff --git a/routing/triert/table.go b/routing/triert/table.go index dc58e39..e9b9a75 100644 --- a/routing/triert/table.go +++ b/routing/triert/table.go @@ -5,10 +5,10 @@ import ( "sync" "sync/atomic" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/key/trie" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/key/trie" ) // TrieRT is a routing table backed by a XOR Trie which offers good scalablity and performance diff --git a/routing/triert/table_test.go b/routing/triert/table_test.go index a29159e..9014579 100644 --- a/routing/triert/table_test.go +++ b/routing/triert/table_test.go @@ -5,9 +5,9 @@ import ( "sync" "testing" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" "github.com/stretchr/testify/require" ) diff --git a/server/basicserver/basicserver.go b/server/basicserver/basicserver.go index ad944bc..59dca89 100644 --- a/server/basicserver/basicserver.go +++ b/server/basicserver/basicserver.go @@ -9,12 +9,12 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/libp2p" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/sim" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/libp2p" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/util" ) type BasicServer[A kad.Address[A]] struct { diff --git a/server/basicserver/basicserver_test.go b/server/basicserver/basicserver_test.go index 6930d5c..baa9fb5 100644 --- a/server/basicserver/basicserver_test.go +++ b/server/basicserver/basicserver_test.go @@ -9,18 +9,18 @@ import ( "time" "github.com/multiformats/go-multiaddr" - "github.com/plprobelab/go-kademlia/libp2p" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/libp2p" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" "github.com/benbjohnson/clock" "github.com/libp2p/go-libp2p/core/peer" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/routing/simplert" - "github.com/plprobelab/go-kademlia/sim" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/sim" "github.com/stretchr/testify/require" ) diff --git a/server/server.go b/server/server.go index e94f189..3ed9a2c 100644 --- a/server/server.go +++ b/server/server.go @@ -3,7 +3,7 @@ package server import ( "context" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) // Server is the interface for handling requests from remote nodes. diff --git a/sim/endpoint.go b/sim/endpoint.go index cf7ad99..26f17e1 100644 --- a/sim/endpoint.go +++ b/sim/endpoint.go @@ -7,12 +7,12 @@ import ( "sync" "time" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/util" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" ) diff --git a/sim/endpoint_test.go b/sim/endpoint_test.go index a8c6cdd..1e636db 100644 --- a/sim/endpoint_test.go +++ b/sim/endpoint_test.go @@ -7,15 +7,15 @@ import ( "time" "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/routing/simplert" ) var ( diff --git a/sim/message.go b/sim/message.go index af8d223..5356293 100644 --- a/sim/message.go +++ b/sim/message.go @@ -1,7 +1,7 @@ package sim import ( - "github.com/plprobelab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/kad" ) // Message is a simple implementation of `Request` and `Response`. diff --git a/sim/message_test.go b/sim/message_test.go index de811c2..d55632d 100644 --- a/sim/message_test.go +++ b/sim/message_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" ) var ( diff --git a/sim/router.go b/sim/router.go index 1cfd737..57dd76a 100644 --- a/sim/router.go +++ b/sim/router.go @@ -3,10 +3,10 @@ package sim import ( "context" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" ) type Router[K kad.Key[K], A kad.Address[A]] struct { diff --git a/sim/router_test.go b/sim/router_test.go index f67d2d3..aed8d7c 100644 --- a/sim/router_test.go +++ b/sim/router_test.go @@ -8,12 +8,12 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/address" - "github.com/plprobelab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/address" + "github.com/probe-lab/go-kademlia/network/endpoint" ) func TestRouter(t *testing.T) { diff --git a/sim/server.go b/sim/server.go index 8dbd1bc..281c4b3 100644 --- a/sim/server.go +++ b/sim/server.go @@ -7,10 +7,10 @@ import ( "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/network/endpoint" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/network/endpoint" + "github.com/probe-lab/go-kademlia/util" ) type Server[K kad.Key[K], A kad.Address[A]] struct { diff --git a/sim/server_test.go b/sim/server_test.go index 0d38fc4..a44ea6e 100644 --- a/sim/server_test.go +++ b/sim/server_test.go @@ -10,11 +10,11 @@ import ( "github.com/benbjohnson/clock" "github.com/stretchr/testify/require" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/internal/kadtest" - "github.com/plprobelab/go-kademlia/kad" - "github.com/plprobelab/go-kademlia/key" - "github.com/plprobelab/go-kademlia/routing/simplert" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/internal/kadtest" + "github.com/probe-lab/go-kademlia/kad" + "github.com/probe-lab/go-kademlia/key" + "github.com/probe-lab/go-kademlia/routing/simplert" ) // remotePeers with bucket assignments wrt to self diff --git a/sim/simulator.go b/sim/simulator.go index 1d89dca..13af288 100644 --- a/sim/simulator.go +++ b/sim/simulator.go @@ -6,8 +6,8 @@ import ( "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/event" - "github.com/plprobelab/go-kademlia/util" + "github.com/probe-lab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/util" ) // Simulator is an interface for simulating a set of schedulers. diff --git a/sim/simulator_test.go b/sim/simulator_test.go index c6f259a..494fc73 100644 --- a/sim/simulator_test.go +++ b/sim/simulator_test.go @@ -6,7 +6,7 @@ import ( "time" "github.com/benbjohnson/clock" - "github.com/plprobelab/go-kademlia/event" + "github.com/probe-lab/go-kademlia/event" "github.com/stretchr/testify/require" )