Skip to content

Commit b1c647a

Browse files
committed
refactor: move parser pkg into graph
1 parent 2906988 commit b1c647a

File tree

19 files changed

+2009
-1617
lines changed

19 files changed

+2009
-1617
lines changed

backend/graph/graph.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package graph
33
import (
44
"fmt"
55
"github.com/BaiMeow/NetworkMonitor/conf"
6-
"github.com/BaiMeow/NetworkMonitor/parse"
6+
parse2 "github.com/BaiMeow/NetworkMonitor/graph/parse"
77
"log"
88
"sync"
99
"time"
1010
)
1111

12-
var OSPF map[uint32]*parse.OSPF
13-
var BGP *parse.BGP
12+
var OSPF map[uint32]*parse2.OSPF
13+
var BGP *parse2.BGP
1414

1515
var probes []*Probe
1616
var probesLock sync.Mutex
@@ -52,9 +52,9 @@ func Init() error {
5252

5353
func draw() {
5454
var wg sync.WaitGroup
55-
var drawing parse.Drawing
56-
drawing.OSPF = make(map[uint32]*parse.OSPF)
57-
drawing.BGP = &parse.BGP{}
55+
var drawing parse2.Drawing
56+
drawing.OSPF = make(map[uint32]*parse2.OSPF)
57+
drawing.BGP = &parse2.BGP{}
5858

5959
probesLock.Lock()
6060
defer probesLock.Unlock()

0 commit comments

Comments
 (0)