fix(server): control work connection refill scheduling

This commit is contained in:
fatedier
2026-09-15 13:55:10 +08:00
parent 832df8dff6
commit 53d0a53a36
11 changed files with 3061 additions and 98 deletions
+11 -1
View File
@@ -147,9 +147,19 @@ type NewWorkConn struct {
RunID string `json:"run_id,omitempty"`
PrivilegeKey string `json:"privilege_key,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
WorkConnType string `json:"work_conn_type,omitempty"`
ControlID uint64 `json:"control_id,omitempty"`
}
type ReqWorkConn struct{}
const (
WorkConnTypeDemand = "demand"
WorkConnTypeReserve = "reserve"
)
type ReqWorkConn struct {
WorkConnType string `json:"work_conn_type,omitempty"`
ControlID uint64 `json:"control_id,omitempty"`
}
type StartWorkConn struct {
ProxyName string `json:"proxy_name,omitempty"`