File tree 28 files changed +69
-47
lines changed
28 files changed +69
-47
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ import (
8
8
"errors"
9
9
"fmt"
10
10
"math"
11
- "netspot/config"
12
- "netspot/exporter"
13
- "netspot/miner"
14
- "netspot/stats"
15
11
"sync"
16
12
"time"
17
13
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
+
18
19
"github.com/asiffer/gospot"
19
20
"github.com/rs/zerolog"
20
21
"github.com/rs/zerolog/log"
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ package analyzer
5
5
import (
6
6
"fmt"
7
7
"io/ioutil"
8
- "netspot/config"
9
- "netspot/exporter"
10
- "netspot/miner"
11
8
"os"
12
9
"path"
13
10
"path/filepath"
@@ -16,6 +13,10 @@ import (
16
13
"testing"
17
14
"time"
18
15
16
+ "github.com/asiffer/netspot/config"
17
+ "github.com/asiffer/netspot/exporter"
18
+ "github.com/asiffer/netspot/miner"
19
+
19
20
"github.com/rs/zerolog"
20
21
)
21
22
Original file line number Diff line number Diff line change 6
6
package analyzer
7
7
8
8
import (
9
- "netspot/miner"
9
+ "github.com/asiffer/ netspot/miner"
10
10
"testing"
11
11
"time"
12
12
)
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ package analyzer
2
2
3
3
import (
4
4
"fmt"
5
- "netspot/config"
6
- "netspot/exporter"
7
- "netspot/miner"
8
5
"testing"
9
6
"time"
7
+
8
+ "github.com/asiffer/netspot/config"
9
+ "github.com/asiffer/netspot/exporter"
10
+ "github.com/asiffer/netspot/miner"
10
11
)
11
12
12
13
func TestLivePcapSmall (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ import (
7
7
"fmt"
8
8
"net"
9
9
"net/http"
10
- "netspot/analyzer"
11
- "netspot/config"
12
- "netspot/exporter"
13
- "netspot/miner"
14
10
"strings"
15
11
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
+
16
17
"github.com/gorilla/mux"
17
18
"github.com/rs/zerolog"
18
19
"github.com/rs/zerolog/log"
Original file line number Diff line number Diff line change 1
1
package api
2
2
3
3
import (
4
+ "github.com/asiffer/netspot/config"
4
5
"io/ioutil"
5
6
"net/http"
6
- "netspot/config"
7
7
)
8
8
9
9
// ConfigHandler returns the current config
Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import (
6
6
"embed"
7
7
"io/fs"
8
8
"net/http"
9
- "netspot/analyzer"
10
- "netspot/config"
11
- "netspot/miner"
12
9
"text/template"
13
10
"time"
11
+
12
+ "github.com/asiffer/netspot/analyzer"
13
+ "github.com/asiffer/netspot/config"
14
+ "github.com/asiffer/netspot/miner"
14
15
)
15
16
16
17
//go:embed web/index.html web/static/css/*.css web/static/images/* web/static/fonts/*.otf
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package api
4
4
5
5
import (
6
6
"encoding/json"
7
+ "github.com/asiffer/netspot/miner"
7
8
"net/http"
8
- "netspot/miner"
9
9
)
10
10
11
11
// DevicesHandler returns the list of available interfaces
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ package api
5
5
import (
6
6
"encoding/json"
7
7
"fmt"
8
+ "github.com/asiffer/netspot/analyzer"
8
9
"io/ioutil"
9
10
"net/http"
10
- "netspot/analyzer"
11
11
)
12
12
13
13
// RunHandler manages start/stop actions
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package api
4
4
5
5
import (
6
6
"encoding/json"
7
+ "github.com/asiffer/netspot/analyzer"
7
8
"net/http"
8
- "netspot/analyzer"
9
9
)
10
10
11
11
// StatsHandler returns the list of the available stats along with
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ package cmd
2
2
3
3
import (
4
4
"fmt"
5
- "netspot/analyzer"
6
- "netspot/api"
7
- "netspot/config"
8
- "netspot/exporter"
9
- "netspot/miner"
10
5
"os"
11
6
"os/exec"
12
7
"path/filepath"
13
8
"strings"
14
9
"time"
15
10
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
+
16
17
"github.com/rs/zerolog"
17
18
"github.com/rs/zerolog/log"
18
19
cli "github.com/urfave/cli/v2"
Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ package cmd
2
2
3
3
import (
4
4
"fmt"
5
- "netspot/analyzer"
6
- "netspot/api"
7
- "netspot/config"
8
5
"os"
9
6
"sort"
10
7
"strings"
11
8
9
+ "github.com/asiffer/netspot/analyzer"
10
+ "github.com/asiffer/netspot/api"
11
+ "github.com/asiffer/netspot/config"
12
+
12
13
cli "github.com/urfave/cli/v2"
13
14
)
14
15
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ package exporter
6
6
import (
7
7
"encoding/json"
8
8
"fmt"
9
- "netspot/config"
10
9
"time"
11
10
11
+ "github.com/asiffer/netspot/config"
12
+
12
13
"github.com/rs/zerolog"
13
14
)
14
15
Original file line number Diff line number Diff line change 3
3
package exporter
4
4
5
5
import (
6
- "netspot/config"
7
6
"testing"
8
7
"time"
8
+
9
+ "github.com/asiffer/netspot/config"
9
10
)
10
11
11
12
const consolePrefix = "exporter.console"
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ package exporter
8
8
import (
9
9
"errors"
10
10
"fmt"
11
- "netspot/config"
12
11
"os"
13
12
"path/filepath"
14
13
"time"
15
14
15
+ "github.com/asiffer/netspot/config"
16
+
16
17
"github.com/rs/zerolog"
17
18
"github.com/rs/zerolog/log"
18
19
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ package exporter
5
5
import (
6
6
"bytes"
7
7
"fmt"
8
- "netspot/config"
9
8
"os"
10
9
"path"
11
10
"path/filepath"
@@ -14,6 +13,8 @@ import (
14
13
"testing"
15
14
"time"
16
15
16
+ "github.com/asiffer/netspot/config"
17
+
17
18
"github.com/rs/zerolog"
18
19
"github.com/spf13/viper"
19
20
)
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ package exporter
4
4
5
5
import (
6
6
"fmt"
7
- "netspot/config"
8
7
"os"
9
8
"strings"
10
9
"time"
10
+
11
+ "github.com/asiffer/netspot/config"
11
12
)
12
13
13
14
const (
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ package exporter
5
5
import (
6
6
"fmt"
7
7
"io/ioutil"
8
- "netspot/config"
9
8
"testing"
10
9
"time"
10
+
11
+ "github.com/asiffer/netspot/config"
11
12
)
12
13
13
14
const filePrefix = "exporter.file"
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ package exporter
4
4
5
5
import (
6
6
"fmt"
7
- "netspot/config"
8
7
"regexp"
9
8
"time"
10
9
10
+ "github.com/asiffer/netspot/config"
11
+
11
12
influx "github.com/influxdata/influxdb1-client/v2"
12
13
)
13
14
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import (
8
8
"encoding/json"
9
9
"fmt"
10
10
"net"
11
- "netspot/config"
12
11
"strings"
13
12
"time"
13
+
14
+ "github.com/asiffer/netspot/config"
14
15
)
15
16
16
17
var (
Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ import (
9
9
"encoding/json"
10
10
"fmt"
11
11
"net"
12
- "netspot/config"
13
12
"os"
14
13
"testing"
15
14
"time"
15
+
16
+ "github.com/asiffer/netspot/config"
16
17
)
17
18
18
19
var (
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ package miner
4
4
5
5
import (
6
6
"fmt"
7
- "netspot/config"
8
- "netspot/miner/counters"
9
7
"path/filepath"
10
8
"time"
9
+
10
+ "github.com/asiffer/netspot/config"
11
+ "github.com/asiffer/netspot/miner/counters"
11
12
)
12
13
13
14
//----------------------------------------------------------------------------//
Original file line number Diff line number Diff line change 1
1
package miner
2
2
3
3
import (
4
- "netspot/config"
5
4
"testing"
6
5
"time"
6
+
7
+ "github.com/asiffer/netspot/config"
7
8
)
8
9
9
10
func TestInitConfig (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package miner
2
2
3
3
import (
4
4
"fmt"
5
- "netspot/miner/counters"
6
5
"sync"
7
6
7
+ "github.com/asiffer/netspot/miner/counters"
8
+
8
9
"github.com/google/gopacket"
9
10
"github.com/google/gopacket/layers"
10
11
)
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ package miner
8
8
import (
9
9
"errors"
10
10
"fmt"
11
- "netspot/miner/counters"
12
11
"os"
13
12
"path"
14
13
"strings"
15
14
"sync"
16
15
"time"
17
16
17
+ "github.com/asiffer/netspot/miner/counters"
18
+
18
19
"github.com/google/gopacket"
19
20
"github.com/google/gopacket/pcap"
20
21
"github.com/rs/zerolog"
Original file line number Diff line number Diff line change 22
22
package main
23
23
24
24
import (
25
- "netspot/cmd"
25
+ "github.com/asiffer/ netspot/cmd"
26
26
27
27
"github.com/rs/zerolog/log"
28
28
)
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ package stats
5
5
6
6
import (
7
7
"fmt"
8
- "netspot/config"
9
8
"sync"
10
9
10
+ "github.com/asiffer/netspot/config"
11
+
11
12
"github.com/asiffer/gospot"
12
13
"github.com/rs/zerolog"
13
14
)
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ package stats
5
5
import (
6
6
"fmt"
7
7
"math/rand"
8
- "netspot/config"
9
8
"strings"
10
9
"testing"
11
10
"time"
11
+
12
+ "github.com/asiffer/netspot/config"
12
13
)
13
14
14
15
var (
You can’t perform that action at this time.
0 commit comments