From 7cd0ea1c6b3ad4721372a4a2f4442bb51d40880f Mon Sep 17 00:00:00 2001 From: liwei Date: Tue, 11 Aug 2020 22:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download/downloader.go | 2 +- download/downloader_test.go | 4 ++-- download/http/fetcher.go | 4 ++-- download/http/fetcher_test.go | 2 +- download/http/model/chunk.go | 2 +- download/http/process.go | 4 ++-- go.mod | 2 +- main.go | 2 +- protocol/bt/client.go | 4 ++-- protocol/bt/torrent/main/main.go | 6 +++--- protocol/bt/torrent/peer_conn.go | 6 +++--- protocol/bt/torrent/peer_conn_test.go | 4 ++-- protocol/bt/torrent/peer_pool.go | 4 ++-- protocol/bt/torrent/piece_state.go | 2 +- protocol/bt/torrent/torrent.go | 2 +- protocol/bt/torrent/torrent_test.go | 4 ++-- protocol/bt/tracker/tracker.go | 4 ++-- protocol/bt/tracker/tracker_test.go | 2 +- 18 files changed, 30 insertions(+), 30 deletions(-) diff --git a/download/downloader.go b/download/downloader.go index 92f83403..c4d45415 100644 --- a/download/downloader.go +++ b/download/downloader.go @@ -3,7 +3,7 @@ package download import ( "errors" "github.com/google/uuid" - "github.com/monkeyWie/gopeed/download/common" + "github.com/monkeyWie/gopeed-core/download/common" "net/url" "strings" ) diff --git a/download/downloader_test.go b/download/downloader_test.go index 51d1ef7f..77a07776 100644 --- a/download/downloader_test.go +++ b/download/downloader_test.go @@ -2,8 +2,8 @@ package download import ( "fmt" - "github.com/monkeyWie/gopeed/download/common" - "github.com/monkeyWie/gopeed/download/http" + "github.com/monkeyWie/gopeed-core/download/common" + "github.com/monkeyWie/gopeed-core/download/http" "testing" ) diff --git a/download/http/fetcher.go b/download/http/fetcher.go index 34c2588b..ff32de70 100644 --- a/download/http/fetcher.go +++ b/download/http/fetcher.go @@ -3,8 +3,8 @@ package http import ( "bytes" "fmt" - "github.com/monkeyWie/gopeed/download/common" - "github.com/monkeyWie/gopeed/download/http/model" + "github.com/monkeyWie/gopeed-core/download/common" + "github.com/monkeyWie/gopeed-core/download/http/model" "io/ioutil" "mime" "net/http" diff --git a/download/http/fetcher_test.go b/download/http/fetcher_test.go index 7ac7446e..f489ff28 100644 --- a/download/http/fetcher_test.go +++ b/download/http/fetcher_test.go @@ -3,7 +3,7 @@ package http import ( "crypto/md5" "encoding/hex" - "github.com/monkeyWie/gopeed/download/common" + "github.com/monkeyWie/gopeed-core/download/common" "io" "math/rand" "net" diff --git a/download/http/model/chunk.go b/download/http/model/chunk.go index 521d1baf..c07df4dd 100644 --- a/download/http/model/chunk.go +++ b/download/http/model/chunk.go @@ -1,7 +1,7 @@ package model import ( - "github.com/monkeyWie/gopeed/download/common" + "github.com/monkeyWie/gopeed-core/download/common" ) type Chunk struct { diff --git a/download/http/process.go b/download/http/process.go index 432edaa2..7e41ff90 100644 --- a/download/http/process.go +++ b/download/http/process.go @@ -2,8 +2,8 @@ package http import ( "fmt" - "github.com/monkeyWie/gopeed/download/common" - "github.com/monkeyWie/gopeed/download/http/model" + "github.com/monkeyWie/gopeed-core/download/common" + "github.com/monkeyWie/gopeed-core/download/http/model" "io" "net/http" "path/filepath" diff --git a/go.mod b/go.mod index 09585352..0b517927 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/monkeyWie/gopeed +module github.com/monkeyWie/gopeed-core go 1.13 diff --git a/main.go b/main.go index 7b95bf0b..e4e48729 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/monkeyWie/gopeed/protocol/http" + "github.com/monkeyWie/gopeed-core/protocol/http" ) func main() { diff --git a/protocol/bt/client.go b/protocol/bt/client.go index c7b82bb4..22b15304 100644 --- a/protocol/bt/client.go +++ b/protocol/bt/client.go @@ -2,8 +2,8 @@ package bt import ( "crypto/rand" - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" - "github.com/monkeyWie/gopeed/protocol/bt/torrent" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/torrent" "net/url" ) diff --git a/protocol/bt/torrent/main/main.go b/protocol/bt/torrent/main/main.go index eac5299b..be974b91 100644 --- a/protocol/bt/torrent/main/main.go +++ b/protocol/bt/torrent/main/main.go @@ -1,9 +1,9 @@ package main import ( - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" - "github.com/monkeyWie/gopeed/protocol/bt/peer" - "github.com/monkeyWie/gopeed/protocol/bt/torrent" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/torrent" log "github.com/sirupsen/logrus" ) diff --git a/protocol/bt/torrent/peer_conn.go b/protocol/bt/torrent/peer_conn.go index c437380a..457aa267 100644 --- a/protocol/bt/torrent/peer_conn.go +++ b/protocol/bt/torrent/peer_conn.go @@ -15,9 +15,9 @@ import ( "time" "github.com/cenkalti/mse" - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" - "github.com/monkeyWie/gopeed/protocol/bt/peer" - "github.com/monkeyWie/gopeed/protocol/bt/peer/message" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer/message" log "github.com/sirupsen/logrus" ) diff --git a/protocol/bt/torrent/peer_conn_test.go b/protocol/bt/torrent/peer_conn_test.go index f951e628..f5f76cbb 100644 --- a/protocol/bt/torrent/peer_conn_test.go +++ b/protocol/bt/torrent/peer_conn_test.go @@ -2,8 +2,8 @@ package torrent import ( "fmt" - "github.com/monkeyWie/gopeed/protocol/bt/peer" - "github.com/monkeyWie/gopeed/protocol/bt/tracker" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/tracker" "os" "sync" "testing" diff --git a/protocol/bt/torrent/peer_pool.go b/protocol/bt/torrent/peer_pool.go index c5f65794..bcbffd57 100644 --- a/protocol/bt/torrent/peer_pool.go +++ b/protocol/bt/torrent/peer_pool.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "github.com/monkeyWie/gopeed/protocol/bt/peer" - "github.com/monkeyWie/gopeed/protocol/bt/tracker" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/tracker" ) type peerPool struct { diff --git a/protocol/bt/torrent/piece_state.go b/protocol/bt/torrent/piece_state.go index 8a49a523..a6614cd7 100644 --- a/protocol/bt/torrent/piece_state.go +++ b/protocol/bt/torrent/piece_state.go @@ -1,7 +1,7 @@ package torrent import ( - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" "math" "sync" diff --git a/protocol/bt/torrent/torrent.go b/protocol/bt/torrent/torrent.go index bf95165c..39c9c3df 100644 --- a/protocol/bt/torrent/torrent.go +++ b/protocol/bt/torrent/torrent.go @@ -4,7 +4,7 @@ import ( "errors" "time" - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" log "github.com/sirupsen/logrus" ) diff --git a/protocol/bt/torrent/torrent_test.go b/protocol/bt/torrent/torrent_test.go index b9ce4e13..3c796f3e 100644 --- a/protocol/bt/torrent/torrent_test.go +++ b/protocol/bt/torrent/torrent_test.go @@ -1,8 +1,8 @@ package torrent import ( - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" - "github.com/monkeyWie/gopeed/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" log "github.com/sirupsen/logrus" "testing" ) diff --git a/protocol/bt/tracker/tracker.go b/protocol/bt/tracker/tracker.go index df567a8f..fc740a46 100644 --- a/protocol/bt/tracker/tracker.go +++ b/protocol/bt/tracker/tracker.go @@ -15,8 +15,8 @@ import ( "sync" "time" - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" - "github.com/monkeyWie/gopeed/protocol/bt/peer" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/peer" ) const ( diff --git a/protocol/bt/tracker/tracker_test.go b/protocol/bt/tracker/tracker_test.go index 09119a2e..75fe9dae 100644 --- a/protocol/bt/tracker/tracker_test.go +++ b/protocol/bt/tracker/tracker_test.go @@ -2,7 +2,7 @@ package tracker import ( "fmt" - "github.com/monkeyWie/gopeed/protocol/bt/metainfo" + "github.com/monkeyWie/gopeed-core/protocol/bt/metainfo" "testing" )