mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 21:39:26 +00:00
Make linter happy
This commit is contained in:
@@ -33,6 +33,7 @@ type ConnIter interface {
|
||||
Next() *Connection
|
||||
}
|
||||
|
||||
// ConnectionScanner scans the system for established (TCP) connections
|
||||
type ConnectionScanner interface {
|
||||
// Connections returns all established (TCP) connections. If processes is
|
||||
// false we'll just list all TCP connections, and there is no need to be root.
|
||||
|
||||
@@ -13,6 +13,7 @@ const (
|
||||
lsofBinary = "lsof"
|
||||
)
|
||||
|
||||
// NewConnectionScanner creates a new Darwin ConnectionScanner
|
||||
func NewConnectionScanner(_ process.Walker) ConnectionScanner {
|
||||
return &darwinScanner{}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ func (c *pnConnIter) Next() *Connection {
|
||||
return n
|
||||
}
|
||||
|
||||
// NewConnectionScanner creates a new Linux ConnectionScanner
|
||||
func NewConnectionScanner(walker process.Walker) ConnectionScanner {
|
||||
br := newBackgroundReader(walker)
|
||||
br.start()
|
||||
|
||||
Reference in New Issue
Block a user