Skip to content

Commit

Permalink
Move struct definitions near use
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 1, 2024
1 parent c79871c commit 9c639e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/analyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ type IPStats struct {
LastURLAccess time.Time
}

type StatKey struct {
Server string
Prefix netip.Prefix
}

type Analyzer struct {
Config AnalyzerConfig

Expand Down Expand Up @@ -190,11 +195,6 @@ func (a *Analyzer) handleLine(line []byte) error {
return nil
}

type StatKey struct {
Server string
Prefix netip.Prefix
}

func (a *Analyzer) PrintTopValues(displayRecord map[netip.Prefix]time.Time, sortBy string, serverFilter string) {
activeConn := make(map[netip.Prefix]int)
if !a.Config.NoNetstat {
Expand Down

0 comments on commit 9c639e9

Please sign in to comment.