Documentation
¶
Index ¶
- Constants
- 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
Constants ¶
View Source
const ( InteractiveStatus = uint16(1) InteractiveCmd = uint16(100) InteractiveCmdAck = uint16(102) InteractiveCmdReply = uint16(103) )
Variables ¶
This section is empty.
Functions ¶
func NewInteractiveCmd ¶
func NewInteractiveCmdAck ¶
func NewInteractiveCmdReply ¶
func NewInteractiveStatus ¶
func WriteMessage ¶
Types ¶
type Message ¶
func NewMessage ¶
func (*Message) InteractiveCmd ¶
func (*Message) InteractiveCmdAck ¶
func (*Message) InteractiveCmdReply ¶
func (*Message) InteractiveStatus ¶
Click to show internal directories.
Click to hide internal directories.