Fix up import paths

This commit is contained in:
eyedeekay
2024-11-09 11:53:41 -05:00
parent 89ff8eee03
commit 02c954c228
35 changed files with 58 additions and 58 deletions

View File

@ -25,10 +25,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/krpc" "github.com/go-i2p/go-i2p-bt/krpc"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
const ( const (

View File

@ -20,7 +20,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
type testPeerManager struct { type testPeerManager struct {

View File

@ -19,8 +19,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
// PeerManager is used to manage the peers. // PeerManager is used to manage the peers.

View File

@ -19,8 +19,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/krpc" "github.com/go-i2p/go-i2p-bt/krpc"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
const bktlen = 160 const bktlen = 160

View File

@ -17,8 +17,8 @@ package dht
import ( import (
"time" "time"
"github.com/eyedeekay/go-i2p-bt/krpc" "github.com/go-i2p/go-i2p-bt/krpc"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// RoutingTableNode represents the node with last changed time in the routing table. // RoutingTableNode represents the node with last changed time in the routing table.

View File

@ -19,7 +19,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
// TokenManager is used to manage and validate the token. // TokenManager is used to manage and validate the token.

View File

@ -21,8 +21,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/krpc" "github.com/go-i2p/go-i2p-bt/krpc"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
type transaction struct { type transaction struct {

View File

@ -26,8 +26,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
pp "github.com/eyedeekay/go-i2p-bt/peerprotocol" pp "github.com/go-i2p/go-i2p-bt/peerprotocol"
) )
// BlockSize is the size of a block of the piece. // BlockSize is the size of a block of the piece.

View File

@ -15,8 +15,8 @@
package blockdownload package blockdownload
import ( import (
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
pp "github.com/eyedeekay/go-i2p-bt/peerprotocol" pp "github.com/go-i2p/go-i2p-bt/peerprotocol"
) )
// BlockDownloadHandler is used to downloads the files in the torrent file. // BlockDownloadHandler is used to downloads the files in the torrent file.

View File

@ -18,8 +18,8 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// Predefine some error code. // Predefine some error code.

View File

@ -17,7 +17,7 @@ package krpc
import ( import (
"testing" "testing"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
) )
func TestMessage(t *testing.T) { func TestMessage(t *testing.T) {

View File

@ -20,7 +20,7 @@ import (
"io" "io"
"net" "net"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// Node represents a node information. // Node represents a node information.

View File

@ -23,9 +23,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/eyedeekay/i2pkeys" "github.com/go-i2p/i2pkeys"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
// ErrInvalidAddr is returned when the compact address is invalid. // ErrInvalidAddr is returned when the compact address is invalid.

View File

@ -24,7 +24,7 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
) )
var zeroHash Hash var zeroHash Hash

View File

@ -20,8 +20,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
// Bytes is the []byte type. // Bytes is the []byte type.

View File

@ -21,7 +21,7 @@ import (
"io" "io"
"sort" "sort"
"github.com/eyedeekay/go-i2p-bt/utils" "github.com/go-i2p/go-i2p-bt/utils"
) )
// Predefine some sizes of the pieces. // Predefine some sizes of the pieces.

View File

@ -19,8 +19,8 @@ import (
"errors" "errors"
"net" "net"
"github.com/eyedeekay/i2pkeys" "github.com/go-i2p/i2pkeys"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
) )
var errInvalidIP = errors.New("invalid ipv4 or ipv6") var errInvalidIP = errors.New("invalid ipv4 or ipv6")

View File

@ -19,7 +19,7 @@ import (
"log" "log"
"testing" "testing"
"github.com/eyedeekay/sam3" "github.com/go-i2p/sam3"
) )
func TestCompactIP(t *testing.T) { func TestCompactIP(t *testing.T) {

View File

@ -19,7 +19,7 @@ import (
"encoding/binary" "encoding/binary"
"net" "net"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// GenerateAllowedFastSet generates some allowed fast set of the torrent file. // GenerateAllowedFastSet generates some allowed fast set of the torrent file.

View File

@ -18,7 +18,7 @@ import (
"net" "net"
"testing" "testing"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
func TestGenerateAllowedFastSet(t *testing.T) { func TestGenerateAllowedFastSet(t *testing.T) {

View File

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
var errInvalidProtocolHeader = fmt.Errorf("unexpected peer protocol header string") var errInvalidProtocolHeader = fmt.Errorf("unexpected peer protocol header string")

View File

@ -21,8 +21,8 @@ import (
"net" "net"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// Predefine some errors about extension support. // Predefine some errors about extension support.

View File

@ -22,7 +22,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// Handler is used to handle the incoming peer connection. // Handler is used to handle the incoming peer connection.

View File

@ -20,7 +20,7 @@ import (
"net/url" "net/url"
"sync" "sync"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// Force a peer address to be used // Force a peer address to be used

View File

@ -31,8 +31,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// AnnounceRequest is the tracker announce requests. // AnnounceRequest is the tracker announce requests.

View File

@ -21,9 +21,9 @@ import (
"net" "net"
"strings" "strings"
"github.com/eyedeekay/i2pkeys" "github.com/go-i2p/i2pkeys"
"github.com/eyedeekay/go-i2p-bt/bencode" "github.com/go-i2p/go-i2p-bt/bencode"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
var errInvalidPeer = errors.New("invalid peer information format") var errInvalidPeer = errors.New("invalid peer information format")

View File

@ -18,7 +18,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
func TestHTTPAnnounceRequest(t *testing.T) { func TestHTTPAnnounceRequest(t *testing.T) {

View File

@ -26,9 +26,9 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/tracker/httptracker" "github.com/go-i2p/go-i2p-bt/tracker/httptracker"
"github.com/eyedeekay/go-i2p-bt/tracker/udptracker" "github.com/go-i2p/go-i2p-bt/tracker/udptracker"
) )
// Predefine some announce events. // Predefine some announce events.

View File

@ -22,8 +22,8 @@ import (
"net" "net"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
"github.com/eyedeekay/go-i2p-bt/tracker/udptracker" "github.com/go-i2p/go-i2p-bt/tracker/udptracker"
) )
type testHandler struct{} type testHandler struct{}

View File

@ -25,8 +25,8 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/eyedeekay/i2pkeys" "github.com/go-i2p/i2pkeys"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// ProtocolID is magic constant for the udp tracker connection. // ProtocolID is magic constant for the udp tracker connection.

View File

@ -25,7 +25,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
var Dial = net.Dial var Dial = net.Dial

View File

@ -24,7 +24,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
// ServerHandler is used to handle the request from the client. // ServerHandler is used to handle the request from the client.

View File

@ -22,7 +22,7 @@ import (
"net" "net"
"time" "time"
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
) )
type testHandler struct{} type testHandler struct{}

View File

@ -15,8 +15,8 @@
package blockdownload package blockdownload
import ( import (
"github.com/eyedeekay/go-i2p-bt/metainfo" "github.com/go-i2p/go-i2p-bt/metainfo"
pp "github.com/eyedeekay/go-i2p-bt/peerprotocol" pp "github.com/go-i2p/go-i2p-bt/peerprotocol"
) )
// BlockUploadHandler is used to downloads the files in the torrent file. // BlockUploadHandler is used to downloads the files in the torrent file.

View File

@ -18,7 +18,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/eyedeekay/i2pkeys" "github.com/go-i2p/i2pkeys"
) )
func NetIPAddr(a net.Addr) net.IP { func NetIPAddr(a net.Addr) net.IP {