mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 22:03:41 +00:00
包名修改
This commit is contained in:
1 parent
df2dbca475
commit
7cd0ea1c6b
18 files changed
+30
-30
No files matched your search
@@ -3,7 +3,7 @@ package download
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package download
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
"github.com/monkeyWie/gopeed/download/http"
|
"github.com/monkeyWie/gopeed-core/download/http"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package http
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
"github.com/monkeyWie/gopeed/download/http/model"
|
"github.com/monkeyWie/gopeed-core/download/http/model"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"mime"
|
"mime"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package http
|
|||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
"io"
|
"io"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Chunk struct {
|
type Chunk struct {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package http
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/download/common"
|
"github.com/monkeyWie/gopeed-core/download/common"
|
||||||
"github.com/monkeyWie/gopeed/download/http/model"
|
"github.com/monkeyWie/gopeed-core/download/http/model"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/monkeyWie/gopeed
|
module github.com/monkeyWie/gopeed-core
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/protocol/http"
|
"github.com/monkeyWie/gopeed-core/protocol/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package bt
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/torrent"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/torrent"
|
||||||
"net/url"
|
"net/url"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/torrent"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/torrent"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cenkalti/mse"
|
"github.com/cenkalti/mse"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer/message"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer/message"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package torrent
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/tracker"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/tracker"
|
||||||
"os"
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/tracker"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/tracker"
|
||||||
)
|
)
|
||||||
|
|
||||||
type peerPool struct {
|
type peerPool struct {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package torrent
|
package torrent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"math"
|
"math"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package torrent
|
package torrent
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/peer"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/peer"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package tracker
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/monkeyWie/gopeed/protocol/bt/metainfo"
|
"github.com/monkeyWie/gopeed-core/protocol/bt/metainfo"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user