diff --git a/.gitignore b/.gitignore index 0c20642..52b3703 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ vendor/ .idea/ Gopkg.lock -magneticow/bindata.go +cmd/magneticow/bindata.go # Created by https://www.gitignore.io/api/go,linux,macos,windows diff --git a/cmd/magneticod/bittorrent/operations.go b/cmd/magneticod/bittorrent/operations.go index 36c7be0..33e96e4 100644 --- a/cmd/magneticod/bittorrent/operations.go +++ b/cmd/magneticod/bittorrent/operations.go @@ -16,7 +16,7 @@ import ( "go.uber.org/zap" - "magnetico/persistence" + "github.com/boramalper/magnetico/pkg/persistence" ) const MAX_METADATA_SIZE = 10 * 1024 * 1024 diff --git a/cmd/magneticod/bittorrent/sinkMetadata.go b/cmd/magneticod/bittorrent/sinkMetadata.go index 2d7ff32..9e5049e 100644 --- a/cmd/magneticod/bittorrent/sinkMetadata.go +++ b/cmd/magneticod/bittorrent/sinkMetadata.go @@ -9,8 +9,8 @@ import ( "go.uber.org/zap" - "magnetico/magneticod/dht/mainline" - "magnetico/persistence" + "github.com/boramalper/magnetico/cmd/magneticod/dht/mainline" + "github.com/boramalper/magnetico/pkg/persistence" ) type Metadata struct { diff --git a/cmd/magneticod/dht/managers.go b/cmd/magneticod/dht/managers.go index 3c213a9..c26ccaf 100644 --- a/cmd/magneticod/dht/managers.go +++ b/cmd/magneticod/dht/managers.go @@ -1,6 +1,6 @@ package dht -import "magnetico/magneticod/dht/mainline" +import "github.com/boramalper/magnetico/cmd/magneticod/dht/mainline" type TrawlingManager struct { // private diff --git a/cmd/magneticod/main.go b/cmd/magneticod/main.go index 5c1ae5a..0a35e4f 100644 --- a/cmd/magneticod/main.go +++ b/cmd/magneticod/main.go @@ -6,19 +6,19 @@ import ( "net" "os" "os/signal" + "path" + "runtime/pprof" "time" "github.com/jessevdk/go-flags" "go.uber.org/zap" "go.uber.org/zap/zapcore" - "magnetico/magneticod/bittorrent" - "magnetico/magneticod/dht" + "github.com/boramalper/magnetico/cmd/magneticod/bittorrent" + "github.com/boramalper/magnetico/cmd/magneticod/dht" - "magnetico/persistence" - "runtime/pprof" "github.com/Wessie/appdirs" - "path" + "github.com/boramalper/magnetico/pkg/persistence" ) type cmdFlags struct { diff --git a/cmd/magneticow/main.go b/cmd/magneticow/main.go index 64fac03..906b113 100644 --- a/cmd/magneticow/main.go +++ b/cmd/magneticow/main.go @@ -1,22 +1,22 @@ package main import ( + "encoding/hex" "html/template" "log" "net/http" "os" + "strconv" "strings" + "time" + "unsafe" "github.com/dustin/go-humanize" "github.com/gorilla/mux" "go.uber.org/zap" "go.uber.org/zap/zapcore" - "encoding/hex" - "magnetico/persistence" - "strconv" - "time" - "unsafe" + "github.com/boramalper/magnetico/pkg/persistence" ) const N_TORRENTS = 20