Make linter happy

This commit is contained in:
Alfonso Acosta
2016-02-08 10:48:55 +00:00
parent d4c68f48fa
commit b93c3232cd
3 changed files with 3 additions and 0 deletions

View File

@@ -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.

View File

@@ -13,6 +13,7 @@ const (
lsofBinary = "lsof"
)
// NewConnectionScanner creates a new Darwin ConnectionScanner
func NewConnectionScanner(_ process.Walker) ConnectionScanner {
return &darwinScanner{}
}

View File

@@ -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()