Versions in this module Expand all Collapse all v0 v0.0.5 Oct 14, 2023 v0.0.4 Oct 14, 2023 v0.0.3 Jul 20, 2023 Changes in this version type SocketExtendedInformation + EcnSeen bool + Lost int + Notsent int + Sacked int + SendbufLimitedDuration int + SendbufLimitedRatio float64 v0.0.2 Jul 20, 2023 v0.0.1 Jul 19, 2023 Changes in this version + const CACHE_SIZE + var Version = "dev" + func FilterByParams(params url.Values, socks map[string]Socket) map[string]Socket + func FilterLocalCacheByDport(dport int, sockCache map[string]Socket) map[string]Socket + func FilterLocalCacheByDst(dst netip.Addr, sockCache map[string]Socket) map[string]Socket + func FilterLocalCacheBySport(sport int, sockCache map[string]Socket) map[string]Socket + func FilterLocalCacheBySrc(src netip.Addr, sockCache map[string]Socket) map[string]Socket + func GetLocalCache() (map[string]Socket, error) + func NewCommand() *cobra.Command + type Socket struct + Dport int + Dst netip.Addr + Ext SocketExtendedInformation + Protocol int + Sport int + Src netip.Addr + Timestamp time.Time + func GetLocalCacheByDst(dst string) ([]Socket, error) + func GetLocalCacheByPrefix(prefix netip.Prefix) ([]Socket, error) + func GetLocalCacheByTuple(fiveTupleStr string) (*Socket, error) + func ParseSsOutput(in string) (Socket, error) + func (sock Socket) Key() string + func (sock Socket) String() string + type SocketExtendedInformation struct + Advmss int + AppLimited bool + Ato int + Busy int + BytesAcked int + BytesReceived int + BytesRetrans int + BytesSent int + Cwnd int + DataSegsIn int + DataSegsOut int + Delivered int + DeliveryRate int64 + DsackDups int + Ecn bool + Ino int + Lastack int + Lastrcv int + Lastsnd int + Minrtt float32 + Mss int + PacingRate int64 + Pmtu int + RcvSpace int + RcvSsthresh int + Rcvmss int + Rcvrtt float32 + ReordSeen int + Reordering int + Retrans int + RetransTotal int + Rto int + Rtt float32 + RttVar float32 + RwndLimited string + Sack bool + SegsIn int + SegsOut int + Send int64 + Sk string + Ssthresh int + Ts bool + WscaleRcv int + WscaleSnd int + type SockmonStat struct + Dport int + Dst netip.Addr + Protocol int + Sport int + Src netip.Addr + Timestamp time.Time