feat: backend native executor implement

This commit is contained in:
2026-08-16 01:27:30 +08:00
parent fbce91d797
commit 390e0565d3
44 changed files with 6430 additions and 31 deletions
+26
View File
@@ -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"`
}