Versions in this module Expand all Collapse all v1 v1.2.3 Jan 26, 2026 v1.2.2 Nov 2, 2022 v1.2.1 Sep 1, 2022 v1.2.0 Jun 29, 2022 v1.1.0 Jun 16, 2022 Changes in this version + const TCPTableBasicAll — windows/amd64 + const TCPTableBasicConnections — windows/amd64 + const TCPTableBasicListener — windows/amd64 + const TCPTableOwnerModuleAll — windows/amd64 + const TCPTableOwnerModuleConnections — windows/amd64 + const TCPTableOwnerModuleListener — windows/amd64 + const TCPTableOwnerPIDAll — windows/amd64 + const TCPTableOwnerPIDConnections — windows/amd64 + const TCPTableOwnerPIDListener — windows/amd64 + var TCPStatuses = map[string]string — linux/amd64 + func Pids() ([]int32, error) — linux/amd64 + func Reverse(s []byte) []byte — linux/amd64 + type Addr struct + IP string + Port uint32 + func (a Addr) String() string + type ConnectionStat struct + Family uint32 + Fd uint32 + Laddr Addr + Pid int32 + Raddr Addr + Status string + Type uint32 + Uids []int32 + func Connections(kind string) ([]ConnectionStat, error) + func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) + func ConnectionsPid(kind string, pid int32) ([]ConnectionStat, error) + func ConnectionsPidMax(kind string, pid int32, max int) ([]ConnectionStat, error) + func (n ConnectionStat) String() string + type FilterStat struct + ConnTrackCount int64 + ConnTrackMax int64 + func FilterCounters() ([]FilterStat, error) + type IOCountersStat struct + BytesRecv uint64 + BytesSent uint64 + Dropin uint64 + Dropout uint64 + Errin uint64 + Errout uint64 + Fifoin uint64 + Fifoout uint64 + Name string + PacketsRecv uint64 + PacketsSent uint64 + func IOCounters(pernic bool) ([]IOCountersStat, error) + func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, error) + func (n IOCountersStat) String() string + type InterfaceAddr struct + Addr string + func (n InterfaceAddr) String() string + type InterfaceStat struct + Addrs []InterfaceAddr + Flags []string + HardwareAddr string + MTU int + Name string + func Interfaces() ([]InterfaceStat, error) + func (n InterfaceStat) String() string + type ProtoCountersStat struct + Protocol string + Stats map[string]int64 + func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) + func (n ProtoCountersStat) String() string