Documentation ¶
Index ¶
Constants ¶
const ( // ExecInEvent Event send in WS when characters are sent (stdin) ExecInEvent = "exec:input" // ExecOutEvent Event send in WS when characters are received (stdout or stderr) ExecOutEvent = "exec:output" // ExecExitEvent Event send in WS when program exited ExecExitEvent = "exec:exit" // ExecInferiorInEvent Event send in WS when characters are sent to an inferior (used by gdb inferior/tty) ExecInferiorInEvent = "exec:inferior-input" // ExecInferiorOutEvent Event send in WS when characters are received by an inferior ExecInferiorOutEvent = "exec:inferior-output" )
const EventEventAll = "event:all"
EventEvent Event send in WS when an internal event (eg. Syncthing event is received)
const EventEventType = "event:" // following by event type
const MakeExitEvent = "make:exit"
MakeExitEvent Event send in WS when command exited
const MakeOutEvent = "make:output"
MakeOutEvent Event send in WS when characters are received on stdout/stderr
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventMsg ¶
type EventMsg struct { Time string `json:"time"` Type string `json:"type"` Folder folder.FolderConfig `json:"folder"` }
EventMsg Message send
type EventRegisterArgs ¶
type EventRegisterArgs struct { Name string `json:"name"` ProjectID string `json:"filterProjectID"` }
EventArgs is the parameters (json format) of /events/register command
type EventUnRegisterArgs ¶
type ExecArgs ¶
type ExecArgs struct { ID string `json:"id" binding:"required"` SdkID string `json:"sdkid"` // sdk ID to use for setting env Cmd string `json:"cmd" binding:"required"` Args []string `json:"args"` Env []string `json:"env"` RPath string `json:"rpath"` // relative path into project TTY bool `json:"tty"` // Use a tty, specific to gdb --tty option TTYGdbserverFix bool `json:"ttyGdbserverFix"` // Set to true to activate gdbserver workaround about inferior output ExitImmediate bool `json:"exitImmediate"` // when true, exit event sent immediately when command exited (IOW, don't wait file synchronization) CmdTimeout int `json:"timeout"` // command completion timeout in Second }
ExecArgs JSON parameters of /exec command
type ExecExitMsg ¶
type ExecExitMsg struct { CmdID string `json:"cmdID"` Timestamp string `json:"timestamp"` Code int `json:"code"` Error error `json:"error"` }
ExecExitMsg Message sent when executed command exited
type ExecInMsg ¶
type ExecInMsg struct { CmdID string `json:"cmdID"` Timestamp string `json:"timestamp"` Stdin string `json:"stdin"` }
ExecInMsg Message used to received input characters (stdin)
type ExecOutMsg ¶
type ExecOutMsg struct { CmdID string `json:"cmdID"` Timestamp string `json:"timestamp"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` }
ExecOutMsg Message used to send output characters (stdout+stderr)
type ExecSignalArgs ¶
type ExecSignalArgs struct { CmdID string `json:"cmdID" binding:"required"` // command id Signal string `json:"signal" binding:"required"` // signal number }
ExecSignalArgs JSON parameters of /exec/signal command
type MakeArgs ¶
type MakeArgs struct { ID string `json:"id"` SdkID string `json:"sdkid"` // sdk ID to use for setting env Args []string `json:"args"` // args to pass to make command Env []string `json:"env"` RPath string `json:"rpath"` // relative path into project ExitImmediate bool `json:"exitImmediate"` // when true, exit event sent immediately when command exited (IOW, don't wait file synchronization) CmdTimeout int `json:"timeout"` // command completion timeout in Second }
MakeArgs is the parameters (json format) of /make command
type MakeExitMsg ¶
type MakeExitMsg struct { CmdID string `json:"cmdID"` Timestamp string `json:"timestamp"` Code int `json:"code"` Error error `json:"error"` }
MakeExitMsg Message send on make command exit
type MakeOutMsg ¶
type MakeOutMsg struct { CmdID string `json:"cmdID"` Timestamp string `json:"timestamp"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` }
MakeOutMsg Message send on each output (stdout+stderr) of make command
type XDSAgentInfo ¶
type XDSAgentInfo struct {
Tarballs []XDSAgentTarball `json:"tarballs"`
}
XDSAgentInfo .