Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register binds all command handlers to the http mux. GET <prefix>/ -> commands listing index page. GET <prefix>/{command} -> command page. GET <prefix>/{command}/ws -> websocket for command inputs handling.
func SetWSUpgrader ¶
SetWSUpgrader to override default websocket upgrader
Types ¶
type Command ¶
type Command struct { // Name of the command, will be used as the url to execute the command Name string // Args of the the command Args []string // Description of the command Description string // Writable indicate whether server should process inputs from clients Writable bool // AuthCheck acts as pre-verification step before starts agent process AuthCheck auth.AuthCheck }
Click to show internal directories.
Click to hide internal directories.