Documentation
¶
Index ¶
- Constants
- func HOOKHandler(cmd commands.Command)
- func New(static commands.StaticData, conn net.Conn, server db.Server) commands.Command
- func Print(text string, outputType commands.OutputType)
- func PrintPrompt(data *commands.Data)
- func RECIVHandler(cmd commands.Command)
- func Run(data commands.Command)
- func SHTDWNHandler(cmd commands.Command)
- type ShellCommand
Constants ¶
View Source
const ShellVersion float32 = 1.0
Variables ¶
This section is empty.
Functions ¶
func HOOKHandler ¶
Shell-specific HOOK handler. Listens constantly for incoming HOOK packets and performs the necessary shell operations.
func Print ¶
func Print(text string, outputType commands.OutputType)
Shell-specific output function that handles different input types accordingly.
func PrintPrompt ¶
func RECIVHandler ¶
Shell-specific RECIV handler. Listens constantly for incoming RECIV packets and performs the necessary shell operations.
func Run ¶
Starts a shell that allows the client to send packets to the gochat server, along with other functionalities.
func SHTDWNHandler ¶
Shell-specific SHTDWN handler. Listens constantly for incoming SHTDWN packets and prints a notice about them
Types ¶
Click to show internal directories.
Click to hide internal directories.