fixed some imports

This commit is contained in:
Bora Alper 2018-04-16 16:40:54 +01:00
parent 7e2a2bc5d9
commit f8b489f4a0
6 changed files with 15 additions and 15 deletions

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
vendor/ vendor/
.idea/ .idea/
Gopkg.lock Gopkg.lock
magneticow/bindata.go cmd/magneticow/bindata.go
# Created by https://www.gitignore.io/api/go,linux,macos,windows # Created by https://www.gitignore.io/api/go,linux,macos,windows

View File

@ -16,7 +16,7 @@ import (
"go.uber.org/zap" "go.uber.org/zap"
"magnetico/persistence" "github.com/boramalper/magnetico/pkg/persistence"
) )
const MAX_METADATA_SIZE = 10 * 1024 * 1024 const MAX_METADATA_SIZE = 10 * 1024 * 1024

View File

@ -9,8 +9,8 @@ import (
"go.uber.org/zap" "go.uber.org/zap"
"magnetico/magneticod/dht/mainline" "github.com/boramalper/magnetico/cmd/magneticod/dht/mainline"
"magnetico/persistence" "github.com/boramalper/magnetico/pkg/persistence"
) )
type Metadata struct { type Metadata struct {

View File

@ -1,6 +1,6 @@
package dht package dht
import "magnetico/magneticod/dht/mainline" import "github.com/boramalper/magnetico/cmd/magneticod/dht/mainline"
type TrawlingManager struct { type TrawlingManager struct {
// private // private

View File

@ -6,19 +6,19 @@ import (
"net" "net"
"os" "os"
"os/signal" "os/signal"
"path"
"runtime/pprof"
"time" "time"
"github.com/jessevdk/go-flags" "github.com/jessevdk/go-flags"
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"magnetico/magneticod/bittorrent" "github.com/boramalper/magnetico/cmd/magneticod/bittorrent"
"magnetico/magneticod/dht" "github.com/boramalper/magnetico/cmd/magneticod/dht"
"magnetico/persistence"
"runtime/pprof"
"github.com/Wessie/appdirs" "github.com/Wessie/appdirs"
"path" "github.com/boramalper/magnetico/pkg/persistence"
) )
type cmdFlags struct { type cmdFlags struct {

View File

@ -1,22 +1,22 @@
package main package main
import ( import (
"encoding/hex"
"html/template" "html/template"
"log" "log"
"net/http" "net/http"
"os" "os"
"strconv"
"strings" "strings"
"time"
"unsafe"
"github.com/dustin/go-humanize" "github.com/dustin/go-humanize"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"encoding/hex" "github.com/boramalper/magnetico/pkg/persistence"
"magnetico/persistence"
"strconv"
"time"
"unsafe"
) )
const N_TORRENTS = 20 const N_TORRENTS = 20