mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-06-29 04:01:23 +00:00
34 lines
872 B
Protocol Buffer
34 lines
872 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package daemon;
|
|
option go_package = "github.com/sagernet/sing-box/daemon";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service ManagedService {
|
|
rpc StopService(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
rpc ReloadService(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
|
|
rpc GetSystemProxyStatus(google.protobuf.Empty) returns(SystemProxyStatus) {}
|
|
rpc SetSystemProxyEnabled(SetSystemProxyEnabledRequest) returns(google.protobuf.Empty) {}
|
|
rpc TriggerDebugCrash(DebugCrashRequest) returns(google.protobuf.Empty) {}
|
|
rpc TriggerOOMReport(google.protobuf.Empty) returns(google.protobuf.Empty) {}
|
|
}
|
|
|
|
message SystemProxyStatus {
|
|
bool available = 1;
|
|
bool enabled = 2;
|
|
}
|
|
|
|
message SetSystemProxyEnabledRequest {
|
|
bool enabled = 1;
|
|
}
|
|
|
|
message DebugCrashRequest {
|
|
enum Type {
|
|
GO = 0;
|
|
NATIVE = 1;
|
|
}
|
|
|
|
Type type = 1;
|
|
}
|