X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fapiv1%2Fmake.go;h=9596e1389822ef12eecac0700eea54c6c4e7f50c;hb=2028752efc680c4c409f6f36bcf88104493d42c4;hp=eac621029f420b94b8f02ec3acb687cd8d2ad3c0;hpb=a2df8ec64eef1acd699633e42806e75dc7a7ee55;p=src%2Fxds%2Fxds-server.git diff --git a/lib/apiv1/make.go b/lib/apiv1/make.go index eac6210..9596e13 100644 --- a/lib/apiv1/make.go +++ b/lib/apiv1/make.go @@ -22,7 +22,7 @@ type MakeArgs struct { // MakeOutMsg Message send on each output (stdout+stderr) of make command type MakeOutMsg struct { CmdID string `json:"cmdID"` - Timestamp string `json:timestamp` + Timestamp string `json:"timestamp"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` } @@ -30,13 +30,15 @@ type MakeOutMsg struct { // MakeExitMsg Message send on make command exit type MakeExitMsg struct { CmdID string `json:"cmdID"` - Timestamp string `json:timestamp` + Timestamp string `json:"timestamp"` Code int `json:"code"` Error error `json:"error"` } -// Event name send in WS +// MakeOutEvent Event send in WS when characters are received on stdout/stderr const MakeOutEvent = "make:output" + +// MakeExitEvent Event send in WS when command exited const MakeExitEvent = "make:exit" var makeCommandID = 1