ui+api: dedup per-app marks by app_key; auto-refresh runtime
This commit is contained in:
@@ -200,10 +200,15 @@ const (
|
||||
// EN: Runtime app marking request. Used by per-app launcher wrappers.
|
||||
// RU: Runtime app marking запрос. Используется wrapper-лаунчером per-app.
|
||||
type TrafficAppMarksRequest struct {
|
||||
Op TrafficAppMarksOp `json:"op"`
|
||||
Target string `json:"target"` // vpn|direct
|
||||
Cgroup string `json:"cgroup,omitempty"`
|
||||
TimeoutSec int `json:"timeout_sec,omitempty"` // only for add
|
||||
Op TrafficAppMarksOp `json:"op"`
|
||||
Target string `json:"target"` // vpn|direct
|
||||
Cgroup string `json:"cgroup,omitempty"`
|
||||
// EN: Optional metadata to deduplicate marks per-app across restarts / re-runs.
|
||||
// RU: Опциональные метаданные, чтобы не плодить метки на одно и то же приложение.
|
||||
Unit string `json:"unit,omitempty"`
|
||||
Command string `json:"command,omitempty"`
|
||||
AppKey string `json:"app_key,omitempty"`
|
||||
TimeoutSec int `json:"timeout_sec,omitempty"` // only for add
|
||||
}
|
||||
|
||||
type TrafficAppMarksResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user