Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_SHELL = "bash"
Variables ¶
This section is empty.
Functions ¶
func HandleTcpReading ¶
Types ¶
type CommandRequest ¶
type CommandRequest struct {
Command string `json:"command"`
}
type CommandResponse ¶
type CommandResponse struct {
Response string `json:"response"`
}
type CommandService ¶
type CommandService struct { }
func NewCommandService ¶
func NewCommandService() *CommandService
func (*CommandService) GetCommandResponse ¶
func (c *CommandService) GetCommandResponse(command string) *CommandResponse
Click to show internal directories.
Click to hide internal directories.