package
0.0.0-20200220111822-e5b49efee7a5
Repository: https://github.com/cakturk/go-netstat.git
Documentation: pkg.go.dev

# Functions

NoopFilter - a test function returning true for all elements.
TCP6Socks returns a slice of active TCP IPv4 sockets containing only those elements that satisfy the accept function.
TCPSocks returns a slice of active TCP sockets containing only those elements that satisfy the accept function.
UDP6Socks returns a slice of active UDP IPv6 sockets containing only those elements that satisfy the accept function.
UDPSocks returns a slice of active UDP sockets containing only those elements that satisfy the accept function.

# Constants

Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.
Socket states.

# Variables

Errors returned by gonetstat.

# Structs

Process holds the PID and process name to which each socket belongs.
SockAddr represents an ip:port pair.
SockTabEntry type represents each line of the /proc/net/[tcp|udp].

# Type aliases

AcceptFn is used to filter socket entries.
SkState type represents socket connection state.