Skip to content

Commit c070179

Browse files
author
asr
committed
change import to github/...
1 parent f9e115d commit c070179

28 files changed

+69
-47
lines changed

analyzer/analyzer.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import (
88
"errors"
99
"fmt"
1010
"math"
11-
"netspot/config"
12-
"netspot/exporter"
13-
"netspot/miner"
14-
"netspot/stats"
1511
"sync"
1612
"time"
1713

14+
"github.com/asiffer/netspot/config"
15+
"github.com/asiffer/netspot/exporter"
16+
"github.com/asiffer/netspot/miner"
17+
"github.com/asiffer/netspot/stats"
18+
1819
"github.com/asiffer/gospot"
1920
"github.com/rs/zerolog"
2021
"github.com/rs/zerolog/log"

analyzer/analyzer_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ package analyzer
55
import (
66
"fmt"
77
"io/ioutil"
8-
"netspot/config"
9-
"netspot/exporter"
10-
"netspot/miner"
118
"os"
129
"path"
1310
"path/filepath"
@@ -16,6 +13,10 @@ import (
1613
"testing"
1714
"time"
1815

16+
"github.com/asiffer/netspot/config"
17+
"github.com/asiffer/netspot/exporter"
18+
"github.com/asiffer/netspot/miner"
19+
1920
"github.com/rs/zerolog"
2021
)
2122

analyzer/bad_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package analyzer
77

88
import (
9-
"netspot/miner"
9+
"github.com/asiffer/netspot/miner"
1010
"testing"
1111
"time"
1212
)

analyzer/live_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package analyzer
22

33
import (
44
"fmt"
5-
"netspot/config"
6-
"netspot/exporter"
7-
"netspot/miner"
85
"testing"
96
"time"
7+
8+
"github.com/asiffer/netspot/config"
9+
"github.com/asiffer/netspot/exporter"
10+
"github.com/asiffer/netspot/miner"
1011
)
1112

1213
func TestLivePcapSmall(t *testing.T) {

api/api.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import (
77
"fmt"
88
"net"
99
"net/http"
10-
"netspot/analyzer"
11-
"netspot/config"
12-
"netspot/exporter"
13-
"netspot/miner"
1410
"strings"
1511

12+
"github.com/asiffer/netspot/analyzer"
13+
"github.com/asiffer/netspot/config"
14+
"github.com/asiffer/netspot/exporter"
15+
"github.com/asiffer/netspot/miner"
16+
1617
"github.com/gorilla/mux"
1718
"github.com/rs/zerolog"
1819
"github.com/rs/zerolog/log"

api/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package api
22

33
import (
4+
"github.com/asiffer/netspot/config"
45
"io/ioutil"
56
"net/http"
6-
"netspot/config"
77
)
88

99
// ConfigHandler returns the current config

api/dashboard.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"embed"
77
"io/fs"
88
"net/http"
9-
"netspot/analyzer"
10-
"netspot/config"
11-
"netspot/miner"
129
"text/template"
1310
"time"
11+
12+
"github.com/asiffer/netspot/analyzer"
13+
"github.com/asiffer/netspot/config"
14+
"github.com/asiffer/netspot/miner"
1415
)
1516

1617
//go:embed web/index.html web/static/css/*.css web/static/images/* web/static/fonts/*.otf

api/devices.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package api
44

55
import (
66
"encoding/json"
7+
"github.com/asiffer/netspot/miner"
78
"net/http"
8-
"netspot/miner"
99
)
1010

1111
// DevicesHandler returns the list of available interfaces

api/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package api
55
import (
66
"encoding/json"
77
"fmt"
8+
"github.com/asiffer/netspot/analyzer"
89
"io/ioutil"
910
"net/http"
10-
"netspot/analyzer"
1111
)
1212

1313
// RunHandler manages start/stop actions

api/stats.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package api
44

55
import (
66
"encoding/json"
7+
"github.com/asiffer/netspot/analyzer"
78
"net/http"
8-
"netspot/analyzer"
99
)
1010

1111
// StatsHandler returns the list of the available stats along with

cmd/init.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ package cmd
22

33
import (
44
"fmt"
5-
"netspot/analyzer"
6-
"netspot/api"
7-
"netspot/config"
8-
"netspot/exporter"
9-
"netspot/miner"
105
"os"
116
"os/exec"
127
"path/filepath"
138
"strings"
149
"time"
1510

11+
"github.com/asiffer/netspot/analyzer"
12+
"github.com/asiffer/netspot/api"
13+
"github.com/asiffer/netspot/config"
14+
"github.com/asiffer/netspot/exporter"
15+
"github.com/asiffer/netspot/miner"
16+
1617
"github.com/rs/zerolog"
1718
"github.com/rs/zerolog/log"
1819
cli "github.com/urfave/cli/v2"

cmd/run.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ package cmd
22

33
import (
44
"fmt"
5-
"netspot/analyzer"
6-
"netspot/api"
7-
"netspot/config"
85
"os"
96
"sort"
107
"strings"
118

9+
"github.com/asiffer/netspot/analyzer"
10+
"github.com/asiffer/netspot/api"
11+
"github.com/asiffer/netspot/config"
12+
1213
cli "github.com/urfave/cli/v2"
1314
)
1415

exporter/console.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ package exporter
66
import (
77
"encoding/json"
88
"fmt"
9-
"netspot/config"
109
"time"
1110

11+
"github.com/asiffer/netspot/config"
12+
1213
"github.com/rs/zerolog"
1314
)
1415

exporter/console_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
package exporter
44

55
import (
6-
"netspot/config"
76
"testing"
87
"time"
8+
9+
"github.com/asiffer/netspot/config"
910
)
1011

1112
const consolePrefix = "exporter.console"

exporter/exporter.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ package exporter
88
import (
99
"errors"
1010
"fmt"
11-
"netspot/config"
1211
"os"
1312
"path/filepath"
1413
"time"
1514

15+
"github.com/asiffer/netspot/config"
16+
1617
"github.com/rs/zerolog"
1718
"github.com/rs/zerolog/log"
1819

exporter/exporter_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package exporter
55
import (
66
"bytes"
77
"fmt"
8-
"netspot/config"
98
"os"
109
"path"
1110
"path/filepath"
@@ -14,6 +13,8 @@ import (
1413
"testing"
1514
"time"
1615

16+
"github.com/asiffer/netspot/config"
17+
1718
"github.com/rs/zerolog"
1819
"github.com/spf13/viper"
1920
)

exporter/file.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ package exporter
44

55
import (
66
"fmt"
7-
"netspot/config"
87
"os"
98
"strings"
109
"time"
10+
11+
"github.com/asiffer/netspot/config"
1112
)
1213

1314
const (

exporter/file_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package exporter
55
import (
66
"fmt"
77
"io/ioutil"
8-
"netspot/config"
98
"testing"
109
"time"
10+
11+
"github.com/asiffer/netspot/config"
1112
)
1213

1314
const filePrefix = "exporter.file"

exporter/influxdb1.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ package exporter
44

55
import (
66
"fmt"
7-
"netspot/config"
87
"regexp"
98
"time"
109

10+
"github.com/asiffer/netspot/config"
11+
1112
influx "github.com/influxdata/influxdb1-client/v2"
1213
)
1314

exporter/socket.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import (
88
"encoding/json"
99
"fmt"
1010
"net"
11-
"netspot/config"
1211
"strings"
1312
"time"
13+
14+
"github.com/asiffer/netspot/config"
1415
)
1516

1617
var (

exporter/socket_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import (
99
"encoding/json"
1010
"fmt"
1111
"net"
12-
"netspot/config"
1312
"os"
1413
"testing"
1514
"time"
15+
16+
"github.com/asiffer/netspot/config"
1617
)
1718

1819
var (

miner/config.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ package miner
44

55
import (
66
"fmt"
7-
"netspot/config"
8-
"netspot/miner/counters"
97
"path/filepath"
108
"time"
9+
10+
"github.com/asiffer/netspot/config"
11+
"github.com/asiffer/netspot/miner/counters"
1112
)
1213

1314
//----------------------------------------------------------------------------//

miner/config_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package miner
22

33
import (
4-
"netspot/config"
54
"testing"
65
"time"
6+
7+
"github.com/asiffer/netspot/config"
78
)
89

910
func TestInitConfig(t *testing.T) {

miner/dispatcher.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package miner
22

33
import (
44
"fmt"
5-
"netspot/miner/counters"
65
"sync"
76

7+
"github.com/asiffer/netspot/miner/counters"
8+
89
"github.com/google/gopacket"
910
"github.com/google/gopacket/layers"
1011
)

miner/miner.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ package miner
88
import (
99
"errors"
1010
"fmt"
11-
"netspot/miner/counters"
1211
"os"
1312
"path"
1413
"strings"
1514
"sync"
1615
"time"
1716

17+
"github.com/asiffer/netspot/miner/counters"
18+
1819
"github.com/google/gopacket"
1920
"github.com/google/gopacket/pcap"
2021
"github.com/rs/zerolog"

netspot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
package main
2323

2424
import (
25-
"netspot/cmd"
25+
"github.com/asiffer/netspot/cmd"
2626

2727
"github.com/rs/zerolog/log"
2828
)

stats/stats.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package stats
55

66
import (
77
"fmt"
8-
"netspot/config"
98
"sync"
109

10+
"github.com/asiffer/netspot/config"
11+
1112
"github.com/asiffer/gospot"
1213
"github.com/rs/zerolog"
1314
)

stats/stats_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package stats
55
import (
66
"fmt"
77
"math/rand"
8-
"netspot/config"
98
"strings"
109
"testing"
1110
"time"
11+
12+
"github.com/asiffer/netspot/config"
1213
)
1314

1415
var (

0 commit comments

Comments
 (0)