Versions in this module Expand all Collapse all v0 v0.2.0 Apr 25, 2026 Changes in this version + const MessageTypeClientShellClosed + const MessageTypeCreateShell + const MessageTypeHeartbeat + const MessageTypeShellData + const MessageTypeShellExit + const MessageTypeShellReady + const MessageTypeShellResize + const MessageTypeStatusMessage + func Unmarshal[T any, PT interface{ ... }](msg AgentMessage) (T, error) + type AgentMessage struct + Data []byte + Type byte + func UnmarshalAgentMessage(data []byte) (AgentMessage, error) + func (a AgentMessage) Marshal() []byte + type ClientShellClosedMessage struct + SessionID [16]byte + func (c *ClientShellClosedMessage) ID() string + func (c *ClientShellClosedMessage) UnmarshalFromAgentMessage(data []byte) error + func (c ClientShellClosedMessage) Marshal() []byte + type CreateShellMessage struct + Cols uint32 + Rows uint32 + SessionID [16]byte + func (c *CreateShellMessage) ID() string + func (c *CreateShellMessage) UnmarshalFromAgentMessage(data []byte) error + func (c CreateShellMessage) Marshal() []byte + type MessageUnmarshaler interface + UnmarshalFromAgentMessage func(data []byte) error + type RunnerHeartbetMessage struct + AgentID uint64 + Payload []byte + func (s *RunnerHeartbetMessage) UnmarshalFromAgentMessage(data []byte) error + func (s RunnerHeartbetMessage) Marshal() []byte + type RunnerUpdateMessage struct + AgentID uint64 + Payload []byte + func (s *RunnerUpdateMessage) UnmarshalFromAgentMessage(data []byte) error + func (s RunnerUpdateMessage) Marshal() []byte + type ShellDataMessage struct + Data []byte + SessionID [16]byte + func (c *ShellDataMessage) ID() string + func (c *ShellDataMessage) UnmarshalFromAgentMessage(data []byte) error + func (c ShellDataMessage) Marshal() []byte + type ShellExitMessage struct + SessionID [16]byte + func (c *ShellExitMessage) ID() string + func (c *ShellExitMessage) UnmarshalFromAgentMessage(data []byte) error + func (c ShellExitMessage) Marshal() []byte + type ShellReadyMessage struct + IsError byte + Message []byte + SessionID [16]byte + func (c *ShellReadyMessage) ID() string + func (c *ShellReadyMessage) UnmarshalFromAgentMessage(data []byte) error + func (c ShellReadyMessage) Marshal() []byte + type ShellResizeMessage struct + Cols uint16 + Rows uint16 + SessionID [16]byte + func (c *ShellResizeMessage) ID() string + func (c *ShellResizeMessage) UnmarshalFromAgentMessage(data []byte) error + func (c ShellResizeMessage) Marshal() []byte v0.2.0-beta1 Apr 13, 2026