Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + const InteractiveCmd + const InteractiveCmdAck + const InteractiveCmdReply + const InteractiveStatus + func NewInteractiveCmd(id, name, command, prompt, pre_prompt string, timeout int, close bool) (*interactiveCmd, uint16) + func NewInteractiveCmdAck(id string, count int) (*interactiveCmdAck, uint16) + func NewInteractiveCmdReply(id string, success bool, msg, output string) (*interactiveCmdReply, uint16) + func NewInteractiveStatus(total, active int) (*interactiveStatus, uint16) + func ReadJSON(c net.Conn, a any) error + func ReadMessage(c net.Conn) ([]byte, error) + func SendJSON(c net.Conn, a any) error + func WriteMessage(m []byte, c net.Conn) + type Message struct + Raw []byte + Type uint16 + func NewMessage(tp uint16, rawMsg interface{}) (*Message, error) + func (m *Message) InteractiveCmd() (*interactiveCmd, error) + func (m *Message) InteractiveCmdAck() (*interactiveCmdAck, error) + func (m *Message) InteractiveCmdReply() (*interactiveCmdReply, error) + func (m *Message) InteractiveStatus() (*interactiveStatus, error)