Versions in this module Expand all Collapse all v0 v0.3.3 Jul 17, 2025 v0.3.2 Jul 17, 2025 v0.3.1 Jul 17, 2025 v0.3.0 Jul 17, 2025 v0.2.1 Jul 14, 2025 Changes in this version + type CPUInfo struct + Frequency []float64 + LogicalCores int + ModelName string + PhysicalCores int + Usage []float64 + type Client struct + func NewClient(config *ClientConfig) (*Client, error) + func (c *Client) CheckHealth() error + func (c *Client) Connect() ([]byte, error) + type ClientConfig struct + CAFile string + CertFile string + Endpoint string + Host string + KeyFile string + Port int + func DefaultClientConfig() ClientConfig + func (c *ClientConfig) LoadClientTLSConfig() (*tls.Config, error) + func (c *ClientConfig) Validate() error + type Config struct + CAFile string + CertFile string + KeyFile string + LogFile string + Port int + func DefaultConfig() Config + func (c Config) LoadTLSConfig() (*tls.Config, error) + func (c Config) Validate() error + type DiskInfo struct + Free uint64 + Fstype string + Path string + Total uint64 + Used uint64 + UsedPercent float64 + type FanInfo struct + Name string + Speed int + type GPUInfo struct + FanSpeed int + Index int + MemoryTotal uint64 + MemoryUsed uint64 + Name string + Temperature float64 + Utilization int + type HostInfo struct + Architecture string + BootTime uint64 + Hostname string + KernelVersion string + OS string + Platform string + PlatformVersion string + Uptime uint64 + type LogsResponse struct + File string + Lines []string + Timestamp time.Time + type MemoryInfo struct + Available uint64 + Free uint64 + Total uint64 + Used uint64 + UsedPercent float64 + type NetworkInfo struct + BytesRecv uint64 + BytesSent uint64 + Name string + PacketsRecv uint64 + PacketsSent uint64 + type SensorsInfo struct + Fans []FanInfo + GPU []GPUInfo + Temperature []TemperatureInfo + Timestamp time.Time + type Server struct + func NewServer(config Config) (*Server, error) + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + type SysInfo struct + CPU CPUInfo + Disk []DiskInfo + Host HostInfo + Memory MemoryInfo + Network []NetworkInfo + Timestamp time.Time + type TemperatureInfo struct + Critical float64 + Name string + Temperature float64 v0.2.0 Jul 14, 2025 v0.1.1 Jul 14, 2025 v0.1.0 Jul 10, 2025