feat: backend native executor implement
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// Package daemonapi defines the local Unix Socket request and response protocol.
|
||||
package daemonapi
|
||||
|
||||
const (
|
||||
OperationUpdate = "update"
|
||||
OperationRestart = "restart"
|
||||
InputTypeRepackZIP = "repack-zip"
|
||||
InputTypeNativeJAR = "native-jar"
|
||||
ResponseProgress = "progress"
|
||||
ResponseResult = "result"
|
||||
)
|
||||
|
||||
type Request struct {
|
||||
Operation string `json:"operation"`
|
||||
Service string `json:"service"`
|
||||
InputType string `json:"inputType"`
|
||||
File string `json:"file"`
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Kind string `json:"kind"`
|
||||
TransactionID string `json:"transactionId,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Message string `json:"message,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user