Versions in this module Expand all Collapse all v0 v0.3.0 Aug 1, 2026 v0.2.1 Jul 5, 2026 Changes in this version + const DefaultIPLookupServer + type DNSResult struct + Addrs []string + Domain string + ElapsedMs float64 + Err string + Server string + func ResolveDNS(ctx context.Context, domain, server string) DNSResult + type IPInfo struct + ASN string + City string + Country string + CountryCode string + ElapsedMs float64 + Err string + IP string + ISP string + IsDatacenter bool + IsProxy bool + IsTor bool + IsVPN bool + Latitude float64 + Longitude float64 + Org string + Postal string + Prefix string + Region string + ThreatScore int + Timezone string + func LookupIP(ctx context.Context, ip, server string) IPInfo + type PingOptions struct + Count int + Mode string + Port int + Timeout time.Duration + type PingResult struct + AvgMs float64 + Err string + Host string + LossPercent float64 + Lost int + MaxMs float64 + MinMs float64 + Mode string + Port int + RTTs []float64 + Sent int + func Ping(ctx context.Context, host string, opts PingOptions) PingResult + type PortResult struct + ElapsedMs float64 + Err string + Host string + Open bool + Port int + func CheckPort(ctx context.Context, host string, port int, timeout time.Duration) PortResult v0.2.0 Jul 4, 2026 Changes in this version type InterfaceIO + RxDropRate float64 + RxErrRate float64 + TxDropRate float64 + TxErrRate float64 type RuntimeStats + ConntrackCount uint32 + ConntrackMax uint32 + TCPStates map[string]uint32 v0.1.8 Jun 21, 2026 v0.1.7 Jun 21, 2026 v0.1.6 Jun 16, 2026 Changes in this version type ProcessInfo + Command string + StartedAtUnix int64 v0.1.5 May 10, 2026 v0.1.4 May 3, 2026 v0.1.3 Apr 24, 2026 v0.1.2 Apr 16, 2026 v0.1.1 Apr 15, 2026 v0.1.0 Apr 15, 2026 Changes in this version + const AppName + const DefaultDescription + const DefaultHomepageURL + const DefaultRepositoryURL + const DefaultSampleInterval + const DefaultSchemaVersion + var BuildTime = "unknown" + var Channel = "dev" + var Commit = "none" + var Description = DefaultDescription + var Homepage = DefaultHomepageURL + var License = "MIT" + var Repository = DefaultRepositoryURL + var Version = "dev" + func CollectAll(ctx context.Context, opts Options) (StaticInfo, RuntimeStats, error) + func TerminateProcess(ctx context.Context, pid int32) error + type AppMetadata struct + BuildTime string + Channel string + Commit string + Description string + Homepage string + License string + Name string + Repository string + SchemaVersion string + Version string + func Metadata() AppMetadata + type DiskIOStats struct + IOPS uint64 + Name string + ReadBytes uint64 + ReadCount uint64 + ReadSpeed uint64 + WriteBytes uint64 + WriteCount uint64 + WriteSpeed uint64 + type InterfaceIO struct + IPv4 string + Name string + RxBytes uint64 + RxDrops uint64 + RxErrors uint64 + RxSpeed uint64 + TxBytes uint64 + TxDrops uint64 + TxErrors uint64 + TxSpeed uint64 + type Options struct + SampleInterval time.Duration + type ProcessInfo struct + CPUPercent float64 + MemoryPercent float32 + Name string + Nice int32 + PID int32 + PPID int32 + RSSBytes uint64 + State string + Threads int32 + Uptime uint64 + User string + func ListProcesses(ctx context.Context) ([]ProcessInfo, error) + type RuntimeStats struct + CPU float64 + CPUCount int + CPUFreqMHz float64 + CPUPerCore []float64 + DiskIO []DiskIOStats + DiskUsed uint64 + Interfaces []InterfaceIO + Load1 float64 + Load15 float64 + Load5 float64 + MemUsed uint64 + NetIn uint64 + NetInSpeed uint64 + NetOut uint64 + NetOutSpeed uint64 + ProcessCount uint32 + SwapUsed uint64 + TCPCount uint32 + Temps []TempReading + UDPCount uint32 + Uptime uint64 + func CollectStats(ctx context.Context, opts Options) (RuntimeStats, error) + type Snapshot struct + Static StaticInfo + Stats RuntimeStats + type StaticInfo struct + Arch string + CPUCores uint32 + CPUModel string + DiskTotal uint64 + Hostname string + Kernel string + MemTotal uint64 + OS string + OSVersion string + Platform string + SwapTotal uint64 + Virtualization string + func CollectStatic(ctx context.Context) (StaticInfo, error) + type TempReading struct + Critical float64 + High float64 + SensorKey string + Temperature float64