Versions in this module Expand all Collapse all v2 v2.0.7 Aug 7, 2022 Changes in this version + const CT_DELETE — linux/amd64 + const CT_DELETE_LIST — linux/amd64 + const CT_DROP — linux/amd64 + const CT_EARLY_DROP — linux/amd64 + const CT_ENTRIES — linux/amd64 + const CT_EXPECT_CREATE — linux/amd64 + const CT_EXPECT_DELETE — linux/amd64 + const CT_EXPECT_NEW — linux/amd64 + const CT_FOUND — linux/amd64 + const CT_ICMP_ERROR — linux/amd64 + const CT_IGNORE — linux/amd64 + const CT_INSERT — linux/amd64 + const CT_INSERT_FAILED — linux/amd64 + const CT_INVALID — linux/amd64 + const CT_NEW — linux/amd64 + const CT_SEARCHED — linux/amd64 + const CT_SEARCH_RESTART — linux/amd64 + 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 PidsWithContext(ctx context.Context) ([]int32, error) — linux/amd64 + func Reverse(s []byte) []byte — linux/amd64 + func ReverseWithContext(ctx context.Context, 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 ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) + func ConnectionsMaxWithoutUidsWithContext(ctx context.Context, 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 ConnectionsPidMaxWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) + func ConnectionsPidMaxWithoutUids(kind string, pid int32, max int) ([]ConnectionStat, error) + func ConnectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, pid int32, max int) ([]ConnectionStat, error) + func ConnectionsPidWithContext(ctx context.Context, kind string, pid int32) ([]ConnectionStat, error) + func ConnectionsPidWithoutUids(kind string, pid int32) ([]ConnectionStat, error) + func ConnectionsPidWithoutUidsWithContext(ctx context.Context, kind string, pid int32) ([]ConnectionStat, error) + func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) + func ConnectionsWithoutUids(kind string) ([]ConnectionStat, error) + func ConnectionsWithoutUidsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) + func (n ConnectionStat) String() string + type ConntrackStat struct + Delete uint32 + DeleteList uint32 + Drop uint32 + EarlyDrop uint32 + Entries uint32 + ExpectCreate uint32 + ExpectDelete uint32 + ExpectNew uint32 + Found uint32 + IcmpError uint32 + Ignore uint32 + Insert uint32 + InsertFailed uint32 + Invalid uint32 + New uint32 + SearchRestart uint32 + Searched uint32 + func ConntrackStats(percpu bool) ([]ConntrackStat, error) + func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackStat, error) + func NewConntrackStat(e uint32, s uint32, f uint32, n uint32, inv uint32, ign uint32, del uint32, ...) *ConntrackStat + func (n ConntrackStat) String() string + type ConntrackStatList struct + func NewConntrackStatList() *ConntrackStatList + func (l *ConntrackStatList) Append(c *ConntrackStat) + func (l *ConntrackStatList) Items() []ConntrackStat + func (l *ConntrackStatList) Summary() []ConntrackStat + type FilterStat struct + ConnTrackCount int64 + ConnTrackMax int64 + func FilterCounters() ([]FilterStat, error) + func FilterCountersWithContext(ctx context.Context) ([]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 IOCountersByFileWithContext(ctx context.Context, pernic bool, filename string) ([]IOCountersStat, error) + func IOCountersWithContext(ctx context.Context, pernic bool) ([]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 + Index int + MTU int + Name string + func Interfaces() ([]InterfaceStat, error) + func InterfacesWithContext(ctx context.Context) ([]InterfaceStat, error) + func (n InterfaceStat) String() string + type ProtoCountersStat struct + Protocol string + Stats map[string]int64 + func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) + func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoCountersStat, error) + func (n ProtoCountersStat) String() string