Versions in this module Expand all Collapse all v0 v0.1.3 May 5, 2026 v0.1.1 Apr 26, 2026 v0.1.0 Feb 19, 2026 Changes in this version + func ToPBAgentMessage(msg *AgentMessage) *transportpb.AgentMessage + func ToPBCommand(v *Command) *transportpb.Command + func ToPBCommandResult(v *CommandResult) *transportpb.CommandResult + func ToPBMetricSample(v MetricSample) *transportpb.MetricSample + func ToPBRegistration(v *Registration) *transportpb.Registration + func ToPBServerMessage(msg *ServerMessage) *transportpb.ServerMessage + type AgentMessage struct + Heartbeat *Heartbeat + Kind MessageKind + Metrics *MetricsBatch + Registration *Registration + Result *CommandResult + func FromPBAgentMessage(msg *transportpb.AgentMessage) *AgentMessage + type BasicInfo struct + Arch string + BootID string + HardwareModel string + HardwareVendor string + Hostname string + IPs []string + Kernel string + MachineID string + OS string + type Command struct + ID string + IssuedAt int64 + NodeID string + Payload any + Type CommandType + func FromPBCommand(v *transportpb.Command) *Command + type CommandResult struct + CommandID string + Error string + FinishedAt int64 + NodeID string + Success bool + Type CommandType + func FromPBCommandResult(v *transportpb.CommandResult) *CommandResult + type CommandType string + type Heartbeat struct + At int64 + NodeID string + func NewHeartbeat(nodeID string) *Heartbeat + type MessageKind string + const MessageKindAck + const MessageKindCommand + const MessageKindCommandResult + const MessageKindHeartbeat + const MessageKindMetrics + const MessageKindRegister + type MetricCategory string + type MetricSample struct + At int64 + Category MetricCategory + Payload any + func FromPBMetricSample(v *transportpb.MetricSample) MetricSample + type MetricsBatch struct + NodeID string + Samples []MetricSample + SentAt int64 + type NodeSnapshot struct + Connected bool + LastSeen int64 + Latest map[string]TimedSample + NodeID string + Registration *Registration + SourceIP string + type Registration struct + At int64 + Basic BasicInfo + Modules map[string]any + NodeID string + func FromPBRegistration(v *transportpb.Registration) *Registration + type ServerAck struct + At int64 + NodeID string + type ServerMessage struct + Ack *ServerAck + Command *Command + Kind MessageKind + func FromPBServerMessage(msg *transportpb.ServerMessage) *ServerMessage + type TimedSample struct + At int64 + Category MetricCategory + NodeID string + Payload any