started_service.pb.go 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959
  1. package daemon
  2. import (
  3. reflect "reflect"
  4. sync "sync"
  5. unsafe "unsafe"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. emptypb "google.golang.org/protobuf/types/known/emptypb"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type LogLevel int32
  17. const (
  18. LogLevel_PANIC LogLevel = 0
  19. LogLevel_FATAL LogLevel = 1
  20. LogLevel_ERROR LogLevel = 2
  21. LogLevel_WARN LogLevel = 3
  22. LogLevel_INFO LogLevel = 4
  23. LogLevel_DEBUG LogLevel = 5
  24. LogLevel_TRACE LogLevel = 6
  25. )
  26. // Enum value maps for LogLevel.
  27. var (
  28. LogLevel_name = map[int32]string{
  29. 0: "PANIC",
  30. 1: "FATAL",
  31. 2: "ERROR",
  32. 3: "WARN",
  33. 4: "INFO",
  34. 5: "DEBUG",
  35. 6: "TRACE",
  36. }
  37. LogLevel_value = map[string]int32{
  38. "PANIC": 0,
  39. "FATAL": 1,
  40. "ERROR": 2,
  41. "WARN": 3,
  42. "INFO": 4,
  43. "DEBUG": 5,
  44. "TRACE": 6,
  45. }
  46. )
  47. func (x LogLevel) Enum() *LogLevel {
  48. p := new(LogLevel)
  49. *p = x
  50. return p
  51. }
  52. func (x LogLevel) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (LogLevel) Descriptor() protoreflect.EnumDescriptor {
  56. return file_daemon_started_service_proto_enumTypes[0].Descriptor()
  57. }
  58. func (LogLevel) Type() protoreflect.EnumType {
  59. return &file_daemon_started_service_proto_enumTypes[0]
  60. }
  61. func (x LogLevel) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use LogLevel.Descriptor instead.
  65. func (LogLevel) EnumDescriptor() ([]byte, []int) {
  66. return file_daemon_started_service_proto_rawDescGZIP(), []int{0}
  67. }
  68. type ConnectionFilter int32
  69. const (
  70. ConnectionFilter_ALL ConnectionFilter = 0
  71. ConnectionFilter_ACTIVE ConnectionFilter = 1
  72. ConnectionFilter_CLOSED ConnectionFilter = 2
  73. )
  74. // Enum value maps for ConnectionFilter.
  75. var (
  76. ConnectionFilter_name = map[int32]string{
  77. 0: "ALL",
  78. 1: "ACTIVE",
  79. 2: "CLOSED",
  80. }
  81. ConnectionFilter_value = map[string]int32{
  82. "ALL": 0,
  83. "ACTIVE": 1,
  84. "CLOSED": 2,
  85. }
  86. )
  87. func (x ConnectionFilter) Enum() *ConnectionFilter {
  88. p := new(ConnectionFilter)
  89. *p = x
  90. return p
  91. }
  92. func (x ConnectionFilter) String() string {
  93. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  94. }
  95. func (ConnectionFilter) Descriptor() protoreflect.EnumDescriptor {
  96. return file_daemon_started_service_proto_enumTypes[1].Descriptor()
  97. }
  98. func (ConnectionFilter) Type() protoreflect.EnumType {
  99. return &file_daemon_started_service_proto_enumTypes[1]
  100. }
  101. func (x ConnectionFilter) Number() protoreflect.EnumNumber {
  102. return protoreflect.EnumNumber(x)
  103. }
  104. // Deprecated: Use ConnectionFilter.Descriptor instead.
  105. func (ConnectionFilter) EnumDescriptor() ([]byte, []int) {
  106. return file_daemon_started_service_proto_rawDescGZIP(), []int{1}
  107. }
  108. type ConnectionSortBy int32
  109. const (
  110. ConnectionSortBy_DATE ConnectionSortBy = 0
  111. ConnectionSortBy_TRAFFIC ConnectionSortBy = 1
  112. ConnectionSortBy_TOTAL_TRAFFIC ConnectionSortBy = 2
  113. )
  114. // Enum value maps for ConnectionSortBy.
  115. var (
  116. ConnectionSortBy_name = map[int32]string{
  117. 0: "DATE",
  118. 1: "TRAFFIC",
  119. 2: "TOTAL_TRAFFIC",
  120. }
  121. ConnectionSortBy_value = map[string]int32{
  122. "DATE": 0,
  123. "TRAFFIC": 1,
  124. "TOTAL_TRAFFIC": 2,
  125. }
  126. )
  127. func (x ConnectionSortBy) Enum() *ConnectionSortBy {
  128. p := new(ConnectionSortBy)
  129. *p = x
  130. return p
  131. }
  132. func (x ConnectionSortBy) String() string {
  133. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  134. }
  135. func (ConnectionSortBy) Descriptor() protoreflect.EnumDescriptor {
  136. return file_daemon_started_service_proto_enumTypes[2].Descriptor()
  137. }
  138. func (ConnectionSortBy) Type() protoreflect.EnumType {
  139. return &file_daemon_started_service_proto_enumTypes[2]
  140. }
  141. func (x ConnectionSortBy) Number() protoreflect.EnumNumber {
  142. return protoreflect.EnumNumber(x)
  143. }
  144. // Deprecated: Use ConnectionSortBy.Descriptor instead.
  145. func (ConnectionSortBy) EnumDescriptor() ([]byte, []int) {
  146. return file_daemon_started_service_proto_rawDescGZIP(), []int{2}
  147. }
  148. type ServiceStatus_Type int32
  149. const (
  150. ServiceStatus_IDLE ServiceStatus_Type = 0
  151. ServiceStatus_STARTING ServiceStatus_Type = 1
  152. ServiceStatus_STARTED ServiceStatus_Type = 2
  153. ServiceStatus_STOPPING ServiceStatus_Type = 3
  154. ServiceStatus_FATAL ServiceStatus_Type = 4
  155. )
  156. // Enum value maps for ServiceStatus_Type.
  157. var (
  158. ServiceStatus_Type_name = map[int32]string{
  159. 0: "IDLE",
  160. 1: "STARTING",
  161. 2: "STARTED",
  162. 3: "STOPPING",
  163. 4: "FATAL",
  164. }
  165. ServiceStatus_Type_value = map[string]int32{
  166. "IDLE": 0,
  167. "STARTING": 1,
  168. "STARTED": 2,
  169. "STOPPING": 3,
  170. "FATAL": 4,
  171. }
  172. )
  173. func (x ServiceStatus_Type) Enum() *ServiceStatus_Type {
  174. p := new(ServiceStatus_Type)
  175. *p = x
  176. return p
  177. }
  178. func (x ServiceStatus_Type) String() string {
  179. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  180. }
  181. func (ServiceStatus_Type) Descriptor() protoreflect.EnumDescriptor {
  182. return file_daemon_started_service_proto_enumTypes[3].Descriptor()
  183. }
  184. func (ServiceStatus_Type) Type() protoreflect.EnumType {
  185. return &file_daemon_started_service_proto_enumTypes[3]
  186. }
  187. func (x ServiceStatus_Type) Number() protoreflect.EnumNumber {
  188. return protoreflect.EnumNumber(x)
  189. }
  190. // Deprecated: Use ServiceStatus_Type.Descriptor instead.
  191. func (ServiceStatus_Type) EnumDescriptor() ([]byte, []int) {
  192. return file_daemon_started_service_proto_rawDescGZIP(), []int{0, 0}
  193. }
  194. type ServiceStatus struct {
  195. state protoimpl.MessageState `protogen:"open.v1"`
  196. Status ServiceStatus_Type `protobuf:"varint,1,opt,name=status,proto3,enum=daemon.ServiceStatus_Type" json:"status,omitempty"`
  197. ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
  198. unknownFields protoimpl.UnknownFields
  199. sizeCache protoimpl.SizeCache
  200. }
  201. func (x *ServiceStatus) Reset() {
  202. *x = ServiceStatus{}
  203. mi := &file_daemon_started_service_proto_msgTypes[0]
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. ms.StoreMessageInfo(mi)
  206. }
  207. func (x *ServiceStatus) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*ServiceStatus) ProtoMessage() {}
  211. func (x *ServiceStatus) ProtoReflect() protoreflect.Message {
  212. mi := &file_daemon_started_service_proto_msgTypes[0]
  213. if x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.
  223. func (*ServiceStatus) Descriptor() ([]byte, []int) {
  224. return file_daemon_started_service_proto_rawDescGZIP(), []int{0}
  225. }
  226. func (x *ServiceStatus) GetStatus() ServiceStatus_Type {
  227. if x != nil {
  228. return x.Status
  229. }
  230. return ServiceStatus_IDLE
  231. }
  232. func (x *ServiceStatus) GetErrorMessage() string {
  233. if x != nil {
  234. return x.ErrorMessage
  235. }
  236. return ""
  237. }
  238. type ReloadServiceRequest struct {
  239. state protoimpl.MessageState `protogen:"open.v1"`
  240. NewProfileContent string `protobuf:"bytes,1,opt,name=newProfileContent,proto3" json:"newProfileContent,omitempty"`
  241. unknownFields protoimpl.UnknownFields
  242. sizeCache protoimpl.SizeCache
  243. }
  244. func (x *ReloadServiceRequest) Reset() {
  245. *x = ReloadServiceRequest{}
  246. mi := &file_daemon_started_service_proto_msgTypes[1]
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. ms.StoreMessageInfo(mi)
  249. }
  250. func (x *ReloadServiceRequest) String() string {
  251. return protoimpl.X.MessageStringOf(x)
  252. }
  253. func (*ReloadServiceRequest) ProtoMessage() {}
  254. func (x *ReloadServiceRequest) ProtoReflect() protoreflect.Message {
  255. mi := &file_daemon_started_service_proto_msgTypes[1]
  256. if x != nil {
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. if ms.LoadMessageInfo() == nil {
  259. ms.StoreMessageInfo(mi)
  260. }
  261. return ms
  262. }
  263. return mi.MessageOf(x)
  264. }
  265. // Deprecated: Use ReloadServiceRequest.ProtoReflect.Descriptor instead.
  266. func (*ReloadServiceRequest) Descriptor() ([]byte, []int) {
  267. return file_daemon_started_service_proto_rawDescGZIP(), []int{1}
  268. }
  269. func (x *ReloadServiceRequest) GetNewProfileContent() string {
  270. if x != nil {
  271. return x.NewProfileContent
  272. }
  273. return ""
  274. }
  275. type SubscribeStatusRequest struct {
  276. state protoimpl.MessageState `protogen:"open.v1"`
  277. Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
  278. unknownFields protoimpl.UnknownFields
  279. sizeCache protoimpl.SizeCache
  280. }
  281. func (x *SubscribeStatusRequest) Reset() {
  282. *x = SubscribeStatusRequest{}
  283. mi := &file_daemon_started_service_proto_msgTypes[2]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. func (x *SubscribeStatusRequest) String() string {
  288. return protoimpl.X.MessageStringOf(x)
  289. }
  290. func (*SubscribeStatusRequest) ProtoMessage() {}
  291. func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message {
  292. mi := &file_daemon_started_service_proto_msgTypes[2]
  293. if x != nil {
  294. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  295. if ms.LoadMessageInfo() == nil {
  296. ms.StoreMessageInfo(mi)
  297. }
  298. return ms
  299. }
  300. return mi.MessageOf(x)
  301. }
  302. // Deprecated: Use SubscribeStatusRequest.ProtoReflect.Descriptor instead.
  303. func (*SubscribeStatusRequest) Descriptor() ([]byte, []int) {
  304. return file_daemon_started_service_proto_rawDescGZIP(), []int{2}
  305. }
  306. func (x *SubscribeStatusRequest) GetInterval() int64 {
  307. if x != nil {
  308. return x.Interval
  309. }
  310. return 0
  311. }
  312. type Log struct {
  313. state protoimpl.MessageState `protogen:"open.v1"`
  314. Messages []*Log_Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
  315. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  316. unknownFields protoimpl.UnknownFields
  317. sizeCache protoimpl.SizeCache
  318. }
  319. func (x *Log) Reset() {
  320. *x = Log{}
  321. mi := &file_daemon_started_service_proto_msgTypes[3]
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. ms.StoreMessageInfo(mi)
  324. }
  325. func (x *Log) String() string {
  326. return protoimpl.X.MessageStringOf(x)
  327. }
  328. func (*Log) ProtoMessage() {}
  329. func (x *Log) ProtoReflect() protoreflect.Message {
  330. mi := &file_daemon_started_service_proto_msgTypes[3]
  331. if x != nil {
  332. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  333. if ms.LoadMessageInfo() == nil {
  334. ms.StoreMessageInfo(mi)
  335. }
  336. return ms
  337. }
  338. return mi.MessageOf(x)
  339. }
  340. // Deprecated: Use Log.ProtoReflect.Descriptor instead.
  341. func (*Log) Descriptor() ([]byte, []int) {
  342. return file_daemon_started_service_proto_rawDescGZIP(), []int{3}
  343. }
  344. func (x *Log) GetMessages() []*Log_Message {
  345. if x != nil {
  346. return x.Messages
  347. }
  348. return nil
  349. }
  350. func (x *Log) GetReset_() bool {
  351. if x != nil {
  352. return x.Reset_
  353. }
  354. return false
  355. }
  356. type DefaultLogLevel struct {
  357. state protoimpl.MessageState `protogen:"open.v1"`
  358. Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
  359. unknownFields protoimpl.UnknownFields
  360. sizeCache protoimpl.SizeCache
  361. }
  362. func (x *DefaultLogLevel) Reset() {
  363. *x = DefaultLogLevel{}
  364. mi := &file_daemon_started_service_proto_msgTypes[4]
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. ms.StoreMessageInfo(mi)
  367. }
  368. func (x *DefaultLogLevel) String() string {
  369. return protoimpl.X.MessageStringOf(x)
  370. }
  371. func (*DefaultLogLevel) ProtoMessage() {}
  372. func (x *DefaultLogLevel) ProtoReflect() protoreflect.Message {
  373. mi := &file_daemon_started_service_proto_msgTypes[4]
  374. if x != nil {
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. if ms.LoadMessageInfo() == nil {
  377. ms.StoreMessageInfo(mi)
  378. }
  379. return ms
  380. }
  381. return mi.MessageOf(x)
  382. }
  383. // Deprecated: Use DefaultLogLevel.ProtoReflect.Descriptor instead.
  384. func (*DefaultLogLevel) Descriptor() ([]byte, []int) {
  385. return file_daemon_started_service_proto_rawDescGZIP(), []int{4}
  386. }
  387. func (x *DefaultLogLevel) GetLevel() LogLevel {
  388. if x != nil {
  389. return x.Level
  390. }
  391. return LogLevel_PANIC
  392. }
  393. type Status struct {
  394. state protoimpl.MessageState `protogen:"open.v1"`
  395. Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
  396. Goroutines int32 `protobuf:"varint,2,opt,name=goroutines,proto3" json:"goroutines,omitempty"`
  397. ConnectionsIn int32 `protobuf:"varint,3,opt,name=connectionsIn,proto3" json:"connectionsIn,omitempty"`
  398. ConnectionsOut int32 `protobuf:"varint,4,opt,name=connectionsOut,proto3" json:"connectionsOut,omitempty"`
  399. TrafficAvailable bool `protobuf:"varint,5,opt,name=trafficAvailable,proto3" json:"trafficAvailable,omitempty"`
  400. Uplink int64 `protobuf:"varint,6,opt,name=uplink,proto3" json:"uplink,omitempty"`
  401. Downlink int64 `protobuf:"varint,7,opt,name=downlink,proto3" json:"downlink,omitempty"`
  402. UplinkTotal int64 `protobuf:"varint,8,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
  403. DownlinkTotal int64 `protobuf:"varint,9,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
  404. unknownFields protoimpl.UnknownFields
  405. sizeCache protoimpl.SizeCache
  406. }
  407. func (x *Status) Reset() {
  408. *x = Status{}
  409. mi := &file_daemon_started_service_proto_msgTypes[5]
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. ms.StoreMessageInfo(mi)
  412. }
  413. func (x *Status) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*Status) ProtoMessage() {}
  417. func (x *Status) ProtoReflect() protoreflect.Message {
  418. mi := &file_daemon_started_service_proto_msgTypes[5]
  419. if x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use Status.ProtoReflect.Descriptor instead.
  429. func (*Status) Descriptor() ([]byte, []int) {
  430. return file_daemon_started_service_proto_rawDescGZIP(), []int{5}
  431. }
  432. func (x *Status) GetMemory() uint64 {
  433. if x != nil {
  434. return x.Memory
  435. }
  436. return 0
  437. }
  438. func (x *Status) GetGoroutines() int32 {
  439. if x != nil {
  440. return x.Goroutines
  441. }
  442. return 0
  443. }
  444. func (x *Status) GetConnectionsIn() int32 {
  445. if x != nil {
  446. return x.ConnectionsIn
  447. }
  448. return 0
  449. }
  450. func (x *Status) GetConnectionsOut() int32 {
  451. if x != nil {
  452. return x.ConnectionsOut
  453. }
  454. return 0
  455. }
  456. func (x *Status) GetTrafficAvailable() bool {
  457. if x != nil {
  458. return x.TrafficAvailable
  459. }
  460. return false
  461. }
  462. func (x *Status) GetUplink() int64 {
  463. if x != nil {
  464. return x.Uplink
  465. }
  466. return 0
  467. }
  468. func (x *Status) GetDownlink() int64 {
  469. if x != nil {
  470. return x.Downlink
  471. }
  472. return 0
  473. }
  474. func (x *Status) GetUplinkTotal() int64 {
  475. if x != nil {
  476. return x.UplinkTotal
  477. }
  478. return 0
  479. }
  480. func (x *Status) GetDownlinkTotal() int64 {
  481. if x != nil {
  482. return x.DownlinkTotal
  483. }
  484. return 0
  485. }
  486. type Groups struct {
  487. state protoimpl.MessageState `protogen:"open.v1"`
  488. Group []*Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"`
  489. unknownFields protoimpl.UnknownFields
  490. sizeCache protoimpl.SizeCache
  491. }
  492. func (x *Groups) Reset() {
  493. *x = Groups{}
  494. mi := &file_daemon_started_service_proto_msgTypes[6]
  495. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  496. ms.StoreMessageInfo(mi)
  497. }
  498. func (x *Groups) String() string {
  499. return protoimpl.X.MessageStringOf(x)
  500. }
  501. func (*Groups) ProtoMessage() {}
  502. func (x *Groups) ProtoReflect() protoreflect.Message {
  503. mi := &file_daemon_started_service_proto_msgTypes[6]
  504. if x != nil {
  505. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  506. if ms.LoadMessageInfo() == nil {
  507. ms.StoreMessageInfo(mi)
  508. }
  509. return ms
  510. }
  511. return mi.MessageOf(x)
  512. }
  513. // Deprecated: Use Groups.ProtoReflect.Descriptor instead.
  514. func (*Groups) Descriptor() ([]byte, []int) {
  515. return file_daemon_started_service_proto_rawDescGZIP(), []int{6}
  516. }
  517. func (x *Groups) GetGroup() []*Group {
  518. if x != nil {
  519. return x.Group
  520. }
  521. return nil
  522. }
  523. type Group struct {
  524. state protoimpl.MessageState `protogen:"open.v1"`
  525. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  526. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  527. Selectable bool `protobuf:"varint,3,opt,name=selectable,proto3" json:"selectable,omitempty"`
  528. Selected string `protobuf:"bytes,4,opt,name=selected,proto3" json:"selected,omitempty"`
  529. IsExpand bool `protobuf:"varint,5,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
  530. Items []*GroupItem `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"`
  531. unknownFields protoimpl.UnknownFields
  532. sizeCache protoimpl.SizeCache
  533. }
  534. func (x *Group) Reset() {
  535. *x = Group{}
  536. mi := &file_daemon_started_service_proto_msgTypes[7]
  537. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  538. ms.StoreMessageInfo(mi)
  539. }
  540. func (x *Group) String() string {
  541. return protoimpl.X.MessageStringOf(x)
  542. }
  543. func (*Group) ProtoMessage() {}
  544. func (x *Group) ProtoReflect() protoreflect.Message {
  545. mi := &file_daemon_started_service_proto_msgTypes[7]
  546. if x != nil {
  547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  548. if ms.LoadMessageInfo() == nil {
  549. ms.StoreMessageInfo(mi)
  550. }
  551. return ms
  552. }
  553. return mi.MessageOf(x)
  554. }
  555. // Deprecated: Use Group.ProtoReflect.Descriptor instead.
  556. func (*Group) Descriptor() ([]byte, []int) {
  557. return file_daemon_started_service_proto_rawDescGZIP(), []int{7}
  558. }
  559. func (x *Group) GetTag() string {
  560. if x != nil {
  561. return x.Tag
  562. }
  563. return ""
  564. }
  565. func (x *Group) GetType() string {
  566. if x != nil {
  567. return x.Type
  568. }
  569. return ""
  570. }
  571. func (x *Group) GetSelectable() bool {
  572. if x != nil {
  573. return x.Selectable
  574. }
  575. return false
  576. }
  577. func (x *Group) GetSelected() string {
  578. if x != nil {
  579. return x.Selected
  580. }
  581. return ""
  582. }
  583. func (x *Group) GetIsExpand() bool {
  584. if x != nil {
  585. return x.IsExpand
  586. }
  587. return false
  588. }
  589. func (x *Group) GetItems() []*GroupItem {
  590. if x != nil {
  591. return x.Items
  592. }
  593. return nil
  594. }
  595. type GroupItem struct {
  596. state protoimpl.MessageState `protogen:"open.v1"`
  597. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  598. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  599. UrlTestTime int64 `protobuf:"varint,3,opt,name=urlTestTime,proto3" json:"urlTestTime,omitempty"`
  600. UrlTestDelay int32 `protobuf:"varint,4,opt,name=urlTestDelay,proto3" json:"urlTestDelay,omitempty"`
  601. unknownFields protoimpl.UnknownFields
  602. sizeCache protoimpl.SizeCache
  603. }
  604. func (x *GroupItem) Reset() {
  605. *x = GroupItem{}
  606. mi := &file_daemon_started_service_proto_msgTypes[8]
  607. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  608. ms.StoreMessageInfo(mi)
  609. }
  610. func (x *GroupItem) String() string {
  611. return protoimpl.X.MessageStringOf(x)
  612. }
  613. func (*GroupItem) ProtoMessage() {}
  614. func (x *GroupItem) ProtoReflect() protoreflect.Message {
  615. mi := &file_daemon_started_service_proto_msgTypes[8]
  616. if x != nil {
  617. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  618. if ms.LoadMessageInfo() == nil {
  619. ms.StoreMessageInfo(mi)
  620. }
  621. return ms
  622. }
  623. return mi.MessageOf(x)
  624. }
  625. // Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.
  626. func (*GroupItem) Descriptor() ([]byte, []int) {
  627. return file_daemon_started_service_proto_rawDescGZIP(), []int{8}
  628. }
  629. func (x *GroupItem) GetTag() string {
  630. if x != nil {
  631. return x.Tag
  632. }
  633. return ""
  634. }
  635. func (x *GroupItem) GetType() string {
  636. if x != nil {
  637. return x.Type
  638. }
  639. return ""
  640. }
  641. func (x *GroupItem) GetUrlTestTime() int64 {
  642. if x != nil {
  643. return x.UrlTestTime
  644. }
  645. return 0
  646. }
  647. func (x *GroupItem) GetUrlTestDelay() int32 {
  648. if x != nil {
  649. return x.UrlTestDelay
  650. }
  651. return 0
  652. }
  653. type URLTestRequest struct {
  654. state protoimpl.MessageState `protogen:"open.v1"`
  655. OutboundTag string `protobuf:"bytes,1,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
  656. unknownFields protoimpl.UnknownFields
  657. sizeCache protoimpl.SizeCache
  658. }
  659. func (x *URLTestRequest) Reset() {
  660. *x = URLTestRequest{}
  661. mi := &file_daemon_started_service_proto_msgTypes[9]
  662. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  663. ms.StoreMessageInfo(mi)
  664. }
  665. func (x *URLTestRequest) String() string {
  666. return protoimpl.X.MessageStringOf(x)
  667. }
  668. func (*URLTestRequest) ProtoMessage() {}
  669. func (x *URLTestRequest) ProtoReflect() protoreflect.Message {
  670. mi := &file_daemon_started_service_proto_msgTypes[9]
  671. if x != nil {
  672. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  673. if ms.LoadMessageInfo() == nil {
  674. ms.StoreMessageInfo(mi)
  675. }
  676. return ms
  677. }
  678. return mi.MessageOf(x)
  679. }
  680. // Deprecated: Use URLTestRequest.ProtoReflect.Descriptor instead.
  681. func (*URLTestRequest) Descriptor() ([]byte, []int) {
  682. return file_daemon_started_service_proto_rawDescGZIP(), []int{9}
  683. }
  684. func (x *URLTestRequest) GetOutboundTag() string {
  685. if x != nil {
  686. return x.OutboundTag
  687. }
  688. return ""
  689. }
  690. type SelectOutboundRequest struct {
  691. state protoimpl.MessageState `protogen:"open.v1"`
  692. GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
  693. OutboundTag string `protobuf:"bytes,2,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
  694. unknownFields protoimpl.UnknownFields
  695. sizeCache protoimpl.SizeCache
  696. }
  697. func (x *SelectOutboundRequest) Reset() {
  698. *x = SelectOutboundRequest{}
  699. mi := &file_daemon_started_service_proto_msgTypes[10]
  700. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  701. ms.StoreMessageInfo(mi)
  702. }
  703. func (x *SelectOutboundRequest) String() string {
  704. return protoimpl.X.MessageStringOf(x)
  705. }
  706. func (*SelectOutboundRequest) ProtoMessage() {}
  707. func (x *SelectOutboundRequest) ProtoReflect() protoreflect.Message {
  708. mi := &file_daemon_started_service_proto_msgTypes[10]
  709. if x != nil {
  710. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  711. if ms.LoadMessageInfo() == nil {
  712. ms.StoreMessageInfo(mi)
  713. }
  714. return ms
  715. }
  716. return mi.MessageOf(x)
  717. }
  718. // Deprecated: Use SelectOutboundRequest.ProtoReflect.Descriptor instead.
  719. func (*SelectOutboundRequest) Descriptor() ([]byte, []int) {
  720. return file_daemon_started_service_proto_rawDescGZIP(), []int{10}
  721. }
  722. func (x *SelectOutboundRequest) GetGroupTag() string {
  723. if x != nil {
  724. return x.GroupTag
  725. }
  726. return ""
  727. }
  728. func (x *SelectOutboundRequest) GetOutboundTag() string {
  729. if x != nil {
  730. return x.OutboundTag
  731. }
  732. return ""
  733. }
  734. type SetGroupExpandRequest struct {
  735. state protoimpl.MessageState `protogen:"open.v1"`
  736. GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
  737. IsExpand bool `protobuf:"varint,2,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
  738. unknownFields protoimpl.UnknownFields
  739. sizeCache protoimpl.SizeCache
  740. }
  741. func (x *SetGroupExpandRequest) Reset() {
  742. *x = SetGroupExpandRequest{}
  743. mi := &file_daemon_started_service_proto_msgTypes[11]
  744. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  745. ms.StoreMessageInfo(mi)
  746. }
  747. func (x *SetGroupExpandRequest) String() string {
  748. return protoimpl.X.MessageStringOf(x)
  749. }
  750. func (*SetGroupExpandRequest) ProtoMessage() {}
  751. func (x *SetGroupExpandRequest) ProtoReflect() protoreflect.Message {
  752. mi := &file_daemon_started_service_proto_msgTypes[11]
  753. if x != nil {
  754. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  755. if ms.LoadMessageInfo() == nil {
  756. ms.StoreMessageInfo(mi)
  757. }
  758. return ms
  759. }
  760. return mi.MessageOf(x)
  761. }
  762. // Deprecated: Use SetGroupExpandRequest.ProtoReflect.Descriptor instead.
  763. func (*SetGroupExpandRequest) Descriptor() ([]byte, []int) {
  764. return file_daemon_started_service_proto_rawDescGZIP(), []int{11}
  765. }
  766. func (x *SetGroupExpandRequest) GetGroupTag() string {
  767. if x != nil {
  768. return x.GroupTag
  769. }
  770. return ""
  771. }
  772. func (x *SetGroupExpandRequest) GetIsExpand() bool {
  773. if x != nil {
  774. return x.IsExpand
  775. }
  776. return false
  777. }
  778. type ClashMode struct {
  779. state protoimpl.MessageState `protogen:"open.v1"`
  780. Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
  781. unknownFields protoimpl.UnknownFields
  782. sizeCache protoimpl.SizeCache
  783. }
  784. func (x *ClashMode) Reset() {
  785. *x = ClashMode{}
  786. mi := &file_daemon_started_service_proto_msgTypes[12]
  787. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  788. ms.StoreMessageInfo(mi)
  789. }
  790. func (x *ClashMode) String() string {
  791. return protoimpl.X.MessageStringOf(x)
  792. }
  793. func (*ClashMode) ProtoMessage() {}
  794. func (x *ClashMode) ProtoReflect() protoreflect.Message {
  795. mi := &file_daemon_started_service_proto_msgTypes[12]
  796. if x != nil {
  797. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  798. if ms.LoadMessageInfo() == nil {
  799. ms.StoreMessageInfo(mi)
  800. }
  801. return ms
  802. }
  803. return mi.MessageOf(x)
  804. }
  805. // Deprecated: Use ClashMode.ProtoReflect.Descriptor instead.
  806. func (*ClashMode) Descriptor() ([]byte, []int) {
  807. return file_daemon_started_service_proto_rawDescGZIP(), []int{12}
  808. }
  809. func (x *ClashMode) GetMode() string {
  810. if x != nil {
  811. return x.Mode
  812. }
  813. return ""
  814. }
  815. type ClashModeStatus struct {
  816. state protoimpl.MessageState `protogen:"open.v1"`
  817. ModeList []string `protobuf:"bytes,1,rep,name=modeList,proto3" json:"modeList,omitempty"`
  818. CurrentMode string `protobuf:"bytes,2,opt,name=currentMode,proto3" json:"currentMode,omitempty"`
  819. unknownFields protoimpl.UnknownFields
  820. sizeCache protoimpl.SizeCache
  821. }
  822. func (x *ClashModeStatus) Reset() {
  823. *x = ClashModeStatus{}
  824. mi := &file_daemon_started_service_proto_msgTypes[13]
  825. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  826. ms.StoreMessageInfo(mi)
  827. }
  828. func (x *ClashModeStatus) String() string {
  829. return protoimpl.X.MessageStringOf(x)
  830. }
  831. func (*ClashModeStatus) ProtoMessage() {}
  832. func (x *ClashModeStatus) ProtoReflect() protoreflect.Message {
  833. mi := &file_daemon_started_service_proto_msgTypes[13]
  834. if x != nil {
  835. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  836. if ms.LoadMessageInfo() == nil {
  837. ms.StoreMessageInfo(mi)
  838. }
  839. return ms
  840. }
  841. return mi.MessageOf(x)
  842. }
  843. // Deprecated: Use ClashModeStatus.ProtoReflect.Descriptor instead.
  844. func (*ClashModeStatus) Descriptor() ([]byte, []int) {
  845. return file_daemon_started_service_proto_rawDescGZIP(), []int{13}
  846. }
  847. func (x *ClashModeStatus) GetModeList() []string {
  848. if x != nil {
  849. return x.ModeList
  850. }
  851. return nil
  852. }
  853. func (x *ClashModeStatus) GetCurrentMode() string {
  854. if x != nil {
  855. return x.CurrentMode
  856. }
  857. return ""
  858. }
  859. type SystemProxyStatus struct {
  860. state protoimpl.MessageState `protogen:"open.v1"`
  861. Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
  862. Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
  863. unknownFields protoimpl.UnknownFields
  864. sizeCache protoimpl.SizeCache
  865. }
  866. func (x *SystemProxyStatus) Reset() {
  867. *x = SystemProxyStatus{}
  868. mi := &file_daemon_started_service_proto_msgTypes[14]
  869. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  870. ms.StoreMessageInfo(mi)
  871. }
  872. func (x *SystemProxyStatus) String() string {
  873. return protoimpl.X.MessageStringOf(x)
  874. }
  875. func (*SystemProxyStatus) ProtoMessage() {}
  876. func (x *SystemProxyStatus) ProtoReflect() protoreflect.Message {
  877. mi := &file_daemon_started_service_proto_msgTypes[14]
  878. if x != nil {
  879. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  880. if ms.LoadMessageInfo() == nil {
  881. ms.StoreMessageInfo(mi)
  882. }
  883. return ms
  884. }
  885. return mi.MessageOf(x)
  886. }
  887. // Deprecated: Use SystemProxyStatus.ProtoReflect.Descriptor instead.
  888. func (*SystemProxyStatus) Descriptor() ([]byte, []int) {
  889. return file_daemon_started_service_proto_rawDescGZIP(), []int{14}
  890. }
  891. func (x *SystemProxyStatus) GetAvailable() bool {
  892. if x != nil {
  893. return x.Available
  894. }
  895. return false
  896. }
  897. func (x *SystemProxyStatus) GetEnabled() bool {
  898. if x != nil {
  899. return x.Enabled
  900. }
  901. return false
  902. }
  903. type SetSystemProxyEnabledRequest struct {
  904. state protoimpl.MessageState `protogen:"open.v1"`
  905. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  906. unknownFields protoimpl.UnknownFields
  907. sizeCache protoimpl.SizeCache
  908. }
  909. func (x *SetSystemProxyEnabledRequest) Reset() {
  910. *x = SetSystemProxyEnabledRequest{}
  911. mi := &file_daemon_started_service_proto_msgTypes[15]
  912. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  913. ms.StoreMessageInfo(mi)
  914. }
  915. func (x *SetSystemProxyEnabledRequest) String() string {
  916. return protoimpl.X.MessageStringOf(x)
  917. }
  918. func (*SetSystemProxyEnabledRequest) ProtoMessage() {}
  919. func (x *SetSystemProxyEnabledRequest) ProtoReflect() protoreflect.Message {
  920. mi := &file_daemon_started_service_proto_msgTypes[15]
  921. if x != nil {
  922. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  923. if ms.LoadMessageInfo() == nil {
  924. ms.StoreMessageInfo(mi)
  925. }
  926. return ms
  927. }
  928. return mi.MessageOf(x)
  929. }
  930. // Deprecated: Use SetSystemProxyEnabledRequest.ProtoReflect.Descriptor instead.
  931. func (*SetSystemProxyEnabledRequest) Descriptor() ([]byte, []int) {
  932. return file_daemon_started_service_proto_rawDescGZIP(), []int{15}
  933. }
  934. func (x *SetSystemProxyEnabledRequest) GetEnabled() bool {
  935. if x != nil {
  936. return x.Enabled
  937. }
  938. return false
  939. }
  940. type SubscribeConnectionsRequest struct {
  941. state protoimpl.MessageState `protogen:"open.v1"`
  942. Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
  943. Filter ConnectionFilter `protobuf:"varint,2,opt,name=filter,proto3,enum=daemon.ConnectionFilter" json:"filter,omitempty"`
  944. SortBy ConnectionSortBy `protobuf:"varint,3,opt,name=sortBy,proto3,enum=daemon.ConnectionSortBy" json:"sortBy,omitempty"`
  945. unknownFields protoimpl.UnknownFields
  946. sizeCache protoimpl.SizeCache
  947. }
  948. func (x *SubscribeConnectionsRequest) Reset() {
  949. *x = SubscribeConnectionsRequest{}
  950. mi := &file_daemon_started_service_proto_msgTypes[16]
  951. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  952. ms.StoreMessageInfo(mi)
  953. }
  954. func (x *SubscribeConnectionsRequest) String() string {
  955. return protoimpl.X.MessageStringOf(x)
  956. }
  957. func (*SubscribeConnectionsRequest) ProtoMessage() {}
  958. func (x *SubscribeConnectionsRequest) ProtoReflect() protoreflect.Message {
  959. mi := &file_daemon_started_service_proto_msgTypes[16]
  960. if x != nil {
  961. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  962. if ms.LoadMessageInfo() == nil {
  963. ms.StoreMessageInfo(mi)
  964. }
  965. return ms
  966. }
  967. return mi.MessageOf(x)
  968. }
  969. // Deprecated: Use SubscribeConnectionsRequest.ProtoReflect.Descriptor instead.
  970. func (*SubscribeConnectionsRequest) Descriptor() ([]byte, []int) {
  971. return file_daemon_started_service_proto_rawDescGZIP(), []int{16}
  972. }
  973. func (x *SubscribeConnectionsRequest) GetInterval() int64 {
  974. if x != nil {
  975. return x.Interval
  976. }
  977. return 0
  978. }
  979. func (x *SubscribeConnectionsRequest) GetFilter() ConnectionFilter {
  980. if x != nil {
  981. return x.Filter
  982. }
  983. return ConnectionFilter_ALL
  984. }
  985. func (x *SubscribeConnectionsRequest) GetSortBy() ConnectionSortBy {
  986. if x != nil {
  987. return x.SortBy
  988. }
  989. return ConnectionSortBy_DATE
  990. }
  991. type Connections struct {
  992. state protoimpl.MessageState `protogen:"open.v1"`
  993. Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
  994. unknownFields protoimpl.UnknownFields
  995. sizeCache protoimpl.SizeCache
  996. }
  997. func (x *Connections) Reset() {
  998. *x = Connections{}
  999. mi := &file_daemon_started_service_proto_msgTypes[17]
  1000. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1001. ms.StoreMessageInfo(mi)
  1002. }
  1003. func (x *Connections) String() string {
  1004. return protoimpl.X.MessageStringOf(x)
  1005. }
  1006. func (*Connections) ProtoMessage() {}
  1007. func (x *Connections) ProtoReflect() protoreflect.Message {
  1008. mi := &file_daemon_started_service_proto_msgTypes[17]
  1009. if x != nil {
  1010. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1011. if ms.LoadMessageInfo() == nil {
  1012. ms.StoreMessageInfo(mi)
  1013. }
  1014. return ms
  1015. }
  1016. return mi.MessageOf(x)
  1017. }
  1018. // Deprecated: Use Connections.ProtoReflect.Descriptor instead.
  1019. func (*Connections) Descriptor() ([]byte, []int) {
  1020. return file_daemon_started_service_proto_rawDescGZIP(), []int{17}
  1021. }
  1022. func (x *Connections) GetConnections() []*Connection {
  1023. if x != nil {
  1024. return x.Connections
  1025. }
  1026. return nil
  1027. }
  1028. type Connection struct {
  1029. state protoimpl.MessageState `protogen:"open.v1"`
  1030. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1031. Inbound string `protobuf:"bytes,2,opt,name=inbound,proto3" json:"inbound,omitempty"`
  1032. InboundType string `protobuf:"bytes,3,opt,name=inboundType,proto3" json:"inboundType,omitempty"`
  1033. IpVersion int32 `protobuf:"varint,4,opt,name=ipVersion,proto3" json:"ipVersion,omitempty"`
  1034. Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
  1035. Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
  1036. Destination string `protobuf:"bytes,7,opt,name=destination,proto3" json:"destination,omitempty"`
  1037. Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
  1038. Protocol string `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"`
  1039. User string `protobuf:"bytes,10,opt,name=user,proto3" json:"user,omitempty"`
  1040. FromOutbound string `protobuf:"bytes,11,opt,name=fromOutbound,proto3" json:"fromOutbound,omitempty"`
  1041. CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
  1042. ClosedAt int64 `protobuf:"varint,13,opt,name=closedAt,proto3" json:"closedAt,omitempty"`
  1043. Uplink int64 `protobuf:"varint,14,opt,name=uplink,proto3" json:"uplink,omitempty"`
  1044. Downlink int64 `protobuf:"varint,15,opt,name=downlink,proto3" json:"downlink,omitempty"`
  1045. UplinkTotal int64 `protobuf:"varint,16,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
  1046. DownlinkTotal int64 `protobuf:"varint,17,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
  1047. Rule string `protobuf:"bytes,18,opt,name=rule,proto3" json:"rule,omitempty"`
  1048. Outbound string `protobuf:"bytes,19,opt,name=outbound,proto3" json:"outbound,omitempty"`
  1049. OutboundType string `protobuf:"bytes,20,opt,name=outboundType,proto3" json:"outboundType,omitempty"`
  1050. ChainList []string `protobuf:"bytes,21,rep,name=chainList,proto3" json:"chainList,omitempty"`
  1051. unknownFields protoimpl.UnknownFields
  1052. sizeCache protoimpl.SizeCache
  1053. }
  1054. func (x *Connection) Reset() {
  1055. *x = Connection{}
  1056. mi := &file_daemon_started_service_proto_msgTypes[18]
  1057. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1058. ms.StoreMessageInfo(mi)
  1059. }
  1060. func (x *Connection) String() string {
  1061. return protoimpl.X.MessageStringOf(x)
  1062. }
  1063. func (*Connection) ProtoMessage() {}
  1064. func (x *Connection) ProtoReflect() protoreflect.Message {
  1065. mi := &file_daemon_started_service_proto_msgTypes[18]
  1066. if x != nil {
  1067. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1068. if ms.LoadMessageInfo() == nil {
  1069. ms.StoreMessageInfo(mi)
  1070. }
  1071. return ms
  1072. }
  1073. return mi.MessageOf(x)
  1074. }
  1075. // Deprecated: Use Connection.ProtoReflect.Descriptor instead.
  1076. func (*Connection) Descriptor() ([]byte, []int) {
  1077. return file_daemon_started_service_proto_rawDescGZIP(), []int{18}
  1078. }
  1079. func (x *Connection) GetId() string {
  1080. if x != nil {
  1081. return x.Id
  1082. }
  1083. return ""
  1084. }
  1085. func (x *Connection) GetInbound() string {
  1086. if x != nil {
  1087. return x.Inbound
  1088. }
  1089. return ""
  1090. }
  1091. func (x *Connection) GetInboundType() string {
  1092. if x != nil {
  1093. return x.InboundType
  1094. }
  1095. return ""
  1096. }
  1097. func (x *Connection) GetIpVersion() int32 {
  1098. if x != nil {
  1099. return x.IpVersion
  1100. }
  1101. return 0
  1102. }
  1103. func (x *Connection) GetNetwork() string {
  1104. if x != nil {
  1105. return x.Network
  1106. }
  1107. return ""
  1108. }
  1109. func (x *Connection) GetSource() string {
  1110. if x != nil {
  1111. return x.Source
  1112. }
  1113. return ""
  1114. }
  1115. func (x *Connection) GetDestination() string {
  1116. if x != nil {
  1117. return x.Destination
  1118. }
  1119. return ""
  1120. }
  1121. func (x *Connection) GetDomain() string {
  1122. if x != nil {
  1123. return x.Domain
  1124. }
  1125. return ""
  1126. }
  1127. func (x *Connection) GetProtocol() string {
  1128. if x != nil {
  1129. return x.Protocol
  1130. }
  1131. return ""
  1132. }
  1133. func (x *Connection) GetUser() string {
  1134. if x != nil {
  1135. return x.User
  1136. }
  1137. return ""
  1138. }
  1139. func (x *Connection) GetFromOutbound() string {
  1140. if x != nil {
  1141. return x.FromOutbound
  1142. }
  1143. return ""
  1144. }
  1145. func (x *Connection) GetCreatedAt() int64 {
  1146. if x != nil {
  1147. return x.CreatedAt
  1148. }
  1149. return 0
  1150. }
  1151. func (x *Connection) GetClosedAt() int64 {
  1152. if x != nil {
  1153. return x.ClosedAt
  1154. }
  1155. return 0
  1156. }
  1157. func (x *Connection) GetUplink() int64 {
  1158. if x != nil {
  1159. return x.Uplink
  1160. }
  1161. return 0
  1162. }
  1163. func (x *Connection) GetDownlink() int64 {
  1164. if x != nil {
  1165. return x.Downlink
  1166. }
  1167. return 0
  1168. }
  1169. func (x *Connection) GetUplinkTotal() int64 {
  1170. if x != nil {
  1171. return x.UplinkTotal
  1172. }
  1173. return 0
  1174. }
  1175. func (x *Connection) GetDownlinkTotal() int64 {
  1176. if x != nil {
  1177. return x.DownlinkTotal
  1178. }
  1179. return 0
  1180. }
  1181. func (x *Connection) GetRule() string {
  1182. if x != nil {
  1183. return x.Rule
  1184. }
  1185. return ""
  1186. }
  1187. func (x *Connection) GetOutbound() string {
  1188. if x != nil {
  1189. return x.Outbound
  1190. }
  1191. return ""
  1192. }
  1193. func (x *Connection) GetOutboundType() string {
  1194. if x != nil {
  1195. return x.OutboundType
  1196. }
  1197. return ""
  1198. }
  1199. func (x *Connection) GetChainList() []string {
  1200. if x != nil {
  1201. return x.ChainList
  1202. }
  1203. return nil
  1204. }
  1205. type CloseConnectionRequest struct {
  1206. state protoimpl.MessageState `protogen:"open.v1"`
  1207. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1208. unknownFields protoimpl.UnknownFields
  1209. sizeCache protoimpl.SizeCache
  1210. }
  1211. func (x *CloseConnectionRequest) Reset() {
  1212. *x = CloseConnectionRequest{}
  1213. mi := &file_daemon_started_service_proto_msgTypes[19]
  1214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1215. ms.StoreMessageInfo(mi)
  1216. }
  1217. func (x *CloseConnectionRequest) String() string {
  1218. return protoimpl.X.MessageStringOf(x)
  1219. }
  1220. func (*CloseConnectionRequest) ProtoMessage() {}
  1221. func (x *CloseConnectionRequest) ProtoReflect() protoreflect.Message {
  1222. mi := &file_daemon_started_service_proto_msgTypes[19]
  1223. if x != nil {
  1224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1225. if ms.LoadMessageInfo() == nil {
  1226. ms.StoreMessageInfo(mi)
  1227. }
  1228. return ms
  1229. }
  1230. return mi.MessageOf(x)
  1231. }
  1232. // Deprecated: Use CloseConnectionRequest.ProtoReflect.Descriptor instead.
  1233. func (*CloseConnectionRequest) Descriptor() ([]byte, []int) {
  1234. return file_daemon_started_service_proto_rawDescGZIP(), []int{19}
  1235. }
  1236. func (x *CloseConnectionRequest) GetId() string {
  1237. if x != nil {
  1238. return x.Id
  1239. }
  1240. return ""
  1241. }
  1242. type DeprecatedWarnings struct {
  1243. state protoimpl.MessageState `protogen:"open.v1"`
  1244. Warnings []*DeprecatedWarning `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
  1245. unknownFields protoimpl.UnknownFields
  1246. sizeCache protoimpl.SizeCache
  1247. }
  1248. func (x *DeprecatedWarnings) Reset() {
  1249. *x = DeprecatedWarnings{}
  1250. mi := &file_daemon_started_service_proto_msgTypes[20]
  1251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1252. ms.StoreMessageInfo(mi)
  1253. }
  1254. func (x *DeprecatedWarnings) String() string {
  1255. return protoimpl.X.MessageStringOf(x)
  1256. }
  1257. func (*DeprecatedWarnings) ProtoMessage() {}
  1258. func (x *DeprecatedWarnings) ProtoReflect() protoreflect.Message {
  1259. mi := &file_daemon_started_service_proto_msgTypes[20]
  1260. if x != nil {
  1261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1262. if ms.LoadMessageInfo() == nil {
  1263. ms.StoreMessageInfo(mi)
  1264. }
  1265. return ms
  1266. }
  1267. return mi.MessageOf(x)
  1268. }
  1269. // Deprecated: Use DeprecatedWarnings.ProtoReflect.Descriptor instead.
  1270. func (*DeprecatedWarnings) Descriptor() ([]byte, []int) {
  1271. return file_daemon_started_service_proto_rawDescGZIP(), []int{20}
  1272. }
  1273. func (x *DeprecatedWarnings) GetWarnings() []*DeprecatedWarning {
  1274. if x != nil {
  1275. return x.Warnings
  1276. }
  1277. return nil
  1278. }
  1279. type DeprecatedWarning struct {
  1280. state protoimpl.MessageState `protogen:"open.v1"`
  1281. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  1282. Impending bool `protobuf:"varint,2,opt,name=impending,proto3" json:"impending,omitempty"`
  1283. MigrationLink string `protobuf:"bytes,3,opt,name=migrationLink,proto3" json:"migrationLink,omitempty"`
  1284. unknownFields protoimpl.UnknownFields
  1285. sizeCache protoimpl.SizeCache
  1286. }
  1287. func (x *DeprecatedWarning) Reset() {
  1288. *x = DeprecatedWarning{}
  1289. mi := &file_daemon_started_service_proto_msgTypes[21]
  1290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1291. ms.StoreMessageInfo(mi)
  1292. }
  1293. func (x *DeprecatedWarning) String() string {
  1294. return protoimpl.X.MessageStringOf(x)
  1295. }
  1296. func (*DeprecatedWarning) ProtoMessage() {}
  1297. func (x *DeprecatedWarning) ProtoReflect() protoreflect.Message {
  1298. mi := &file_daemon_started_service_proto_msgTypes[21]
  1299. if x != nil {
  1300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1301. if ms.LoadMessageInfo() == nil {
  1302. ms.StoreMessageInfo(mi)
  1303. }
  1304. return ms
  1305. }
  1306. return mi.MessageOf(x)
  1307. }
  1308. // Deprecated: Use DeprecatedWarning.ProtoReflect.Descriptor instead.
  1309. func (*DeprecatedWarning) Descriptor() ([]byte, []int) {
  1310. return file_daemon_started_service_proto_rawDescGZIP(), []int{21}
  1311. }
  1312. func (x *DeprecatedWarning) GetMessage() string {
  1313. if x != nil {
  1314. return x.Message
  1315. }
  1316. return ""
  1317. }
  1318. func (x *DeprecatedWarning) GetImpending() bool {
  1319. if x != nil {
  1320. return x.Impending
  1321. }
  1322. return false
  1323. }
  1324. func (x *DeprecatedWarning) GetMigrationLink() string {
  1325. if x != nil {
  1326. return x.MigrationLink
  1327. }
  1328. return ""
  1329. }
  1330. type StartedAt struct {
  1331. state protoimpl.MessageState `protogen:"open.v1"`
  1332. StartedAt int64 `protobuf:"varint,1,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
  1333. unknownFields protoimpl.UnknownFields
  1334. sizeCache protoimpl.SizeCache
  1335. }
  1336. func (x *StartedAt) Reset() {
  1337. *x = StartedAt{}
  1338. mi := &file_daemon_started_service_proto_msgTypes[22]
  1339. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1340. ms.StoreMessageInfo(mi)
  1341. }
  1342. func (x *StartedAt) String() string {
  1343. return protoimpl.X.MessageStringOf(x)
  1344. }
  1345. func (*StartedAt) ProtoMessage() {}
  1346. func (x *StartedAt) ProtoReflect() protoreflect.Message {
  1347. mi := &file_daemon_started_service_proto_msgTypes[22]
  1348. if x != nil {
  1349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1350. if ms.LoadMessageInfo() == nil {
  1351. ms.StoreMessageInfo(mi)
  1352. }
  1353. return ms
  1354. }
  1355. return mi.MessageOf(x)
  1356. }
  1357. // Deprecated: Use StartedAt.ProtoReflect.Descriptor instead.
  1358. func (*StartedAt) Descriptor() ([]byte, []int) {
  1359. return file_daemon_started_service_proto_rawDescGZIP(), []int{22}
  1360. }
  1361. func (x *StartedAt) GetStartedAt() int64 {
  1362. if x != nil {
  1363. return x.StartedAt
  1364. }
  1365. return 0
  1366. }
  1367. type Log_Message struct {
  1368. state protoimpl.MessageState `protogen:"open.v1"`
  1369. Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
  1370. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  1371. unknownFields protoimpl.UnknownFields
  1372. sizeCache protoimpl.SizeCache
  1373. }
  1374. func (x *Log_Message) Reset() {
  1375. *x = Log_Message{}
  1376. mi := &file_daemon_started_service_proto_msgTypes[23]
  1377. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1378. ms.StoreMessageInfo(mi)
  1379. }
  1380. func (x *Log_Message) String() string {
  1381. return protoimpl.X.MessageStringOf(x)
  1382. }
  1383. func (*Log_Message) ProtoMessage() {}
  1384. func (x *Log_Message) ProtoReflect() protoreflect.Message {
  1385. mi := &file_daemon_started_service_proto_msgTypes[23]
  1386. if x != nil {
  1387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1388. if ms.LoadMessageInfo() == nil {
  1389. ms.StoreMessageInfo(mi)
  1390. }
  1391. return ms
  1392. }
  1393. return mi.MessageOf(x)
  1394. }
  1395. // Deprecated: Use Log_Message.ProtoReflect.Descriptor instead.
  1396. func (*Log_Message) Descriptor() ([]byte, []int) {
  1397. return file_daemon_started_service_proto_rawDescGZIP(), []int{3, 0}
  1398. }
  1399. func (x *Log_Message) GetLevel() LogLevel {
  1400. if x != nil {
  1401. return x.Level
  1402. }
  1403. return LogLevel_PANIC
  1404. }
  1405. func (x *Log_Message) GetMessage() string {
  1406. if x != nil {
  1407. return x.Message
  1408. }
  1409. return ""
  1410. }
  1411. var File_daemon_started_service_proto protoreflect.FileDescriptor
  1412. const file_daemon_started_service_proto_rawDesc = "" +
  1413. "\n" +
  1414. "\x1cdaemon/started_service.proto\x12\x06daemon\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13daemon/helper.proto\"\xad\x01\n" +
  1415. "\rServiceStatus\x122\n" +
  1416. "\x06status\x18\x01 \x01(\x0e2\x1a.daemon.ServiceStatus.TypeR\x06status\x12\"\n" +
  1417. "\ferrorMessage\x18\x02 \x01(\tR\ferrorMessage\"D\n" +
  1418. "\x04Type\x12\b\n" +
  1419. "\x04IDLE\x10\x00\x12\f\n" +
  1420. "\bSTARTING\x10\x01\x12\v\n" +
  1421. "\aSTARTED\x10\x02\x12\f\n" +
  1422. "\bSTOPPING\x10\x03\x12\t\n" +
  1423. "\x05FATAL\x10\x04\"D\n" +
  1424. "\x14ReloadServiceRequest\x12,\n" +
  1425. "\x11newProfileContent\x18\x01 \x01(\tR\x11newProfileContent\"4\n" +
  1426. "\x16SubscribeStatusRequest\x12\x1a\n" +
  1427. "\binterval\x18\x01 \x01(\x03R\binterval\"\x99\x01\n" +
  1428. "\x03Log\x12/\n" +
  1429. "\bmessages\x18\x01 \x03(\v2\x13.daemon.Log.MessageR\bmessages\x12\x14\n" +
  1430. "\x05reset\x18\x02 \x01(\bR\x05reset\x1aK\n" +
  1431. "\aMessage\x12&\n" +
  1432. "\x05level\x18\x01 \x01(\x0e2\x10.daemon.LogLevelR\x05level\x12\x18\n" +
  1433. "\amessage\x18\x02 \x01(\tR\amessage\"9\n" +
  1434. "\x0fDefaultLogLevel\x12&\n" +
  1435. "\x05level\x18\x01 \x01(\x0e2\x10.daemon.LogLevelR\x05level\"\xb6\x02\n" +
  1436. "\x06Status\x12\x16\n" +
  1437. "\x06memory\x18\x01 \x01(\x04R\x06memory\x12\x1e\n" +
  1438. "\n" +
  1439. "goroutines\x18\x02 \x01(\x05R\n" +
  1440. "goroutines\x12$\n" +
  1441. "\rconnectionsIn\x18\x03 \x01(\x05R\rconnectionsIn\x12&\n" +
  1442. "\x0econnectionsOut\x18\x04 \x01(\x05R\x0econnectionsOut\x12*\n" +
  1443. "\x10trafficAvailable\x18\x05 \x01(\bR\x10trafficAvailable\x12\x16\n" +
  1444. "\x06uplink\x18\x06 \x01(\x03R\x06uplink\x12\x1a\n" +
  1445. "\bdownlink\x18\a \x01(\x03R\bdownlink\x12 \n" +
  1446. "\vuplinkTotal\x18\b \x01(\x03R\vuplinkTotal\x12$\n" +
  1447. "\rdownlinkTotal\x18\t \x01(\x03R\rdownlinkTotal\"-\n" +
  1448. "\x06Groups\x12#\n" +
  1449. "\x05group\x18\x01 \x03(\v2\r.daemon.GroupR\x05group\"\xae\x01\n" +
  1450. "\x05Group\x12\x10\n" +
  1451. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x12\n" +
  1452. "\x04type\x18\x02 \x01(\tR\x04type\x12\x1e\n" +
  1453. "\n" +
  1454. "selectable\x18\x03 \x01(\bR\n" +
  1455. "selectable\x12\x1a\n" +
  1456. "\bselected\x18\x04 \x01(\tR\bselected\x12\x1a\n" +
  1457. "\bisExpand\x18\x05 \x01(\bR\bisExpand\x12'\n" +
  1458. "\x05items\x18\x06 \x03(\v2\x11.daemon.GroupItemR\x05items\"w\n" +
  1459. "\tGroupItem\x12\x10\n" +
  1460. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x12\n" +
  1461. "\x04type\x18\x02 \x01(\tR\x04type\x12 \n" +
  1462. "\vurlTestTime\x18\x03 \x01(\x03R\vurlTestTime\x12\"\n" +
  1463. "\furlTestDelay\x18\x04 \x01(\x05R\furlTestDelay\"2\n" +
  1464. "\x0eURLTestRequest\x12 \n" +
  1465. "\voutboundTag\x18\x01 \x01(\tR\voutboundTag\"U\n" +
  1466. "\x15SelectOutboundRequest\x12\x1a\n" +
  1467. "\bgroupTag\x18\x01 \x01(\tR\bgroupTag\x12 \n" +
  1468. "\voutboundTag\x18\x02 \x01(\tR\voutboundTag\"O\n" +
  1469. "\x15SetGroupExpandRequest\x12\x1a\n" +
  1470. "\bgroupTag\x18\x01 \x01(\tR\bgroupTag\x12\x1a\n" +
  1471. "\bisExpand\x18\x02 \x01(\bR\bisExpand\"\x1f\n" +
  1472. "\tClashMode\x12\x12\n" +
  1473. "\x04mode\x18\x03 \x01(\tR\x04mode\"O\n" +
  1474. "\x0fClashModeStatus\x12\x1a\n" +
  1475. "\bmodeList\x18\x01 \x03(\tR\bmodeList\x12 \n" +
  1476. "\vcurrentMode\x18\x02 \x01(\tR\vcurrentMode\"K\n" +
  1477. "\x11SystemProxyStatus\x12\x1c\n" +
  1478. "\tavailable\x18\x01 \x01(\bR\tavailable\x12\x18\n" +
  1479. "\aenabled\x18\x02 \x01(\bR\aenabled\"8\n" +
  1480. "\x1cSetSystemProxyEnabledRequest\x12\x18\n" +
  1481. "\aenabled\x18\x01 \x01(\bR\aenabled\"\x9d\x01\n" +
  1482. "\x1bSubscribeConnectionsRequest\x12\x1a\n" +
  1483. "\binterval\x18\x01 \x01(\x03R\binterval\x120\n" +
  1484. "\x06filter\x18\x02 \x01(\x0e2\x18.daemon.ConnectionFilterR\x06filter\x120\n" +
  1485. "\x06sortBy\x18\x03 \x01(\x0e2\x18.daemon.ConnectionSortByR\x06sortBy\"C\n" +
  1486. "\vConnections\x124\n" +
  1487. "\vconnections\x18\x01 \x03(\v2\x12.daemon.ConnectionR\vconnections\"\xde\x04\n" +
  1488. "\n" +
  1489. "Connection\x12\x0e\n" +
  1490. "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" +
  1491. "\ainbound\x18\x02 \x01(\tR\ainbound\x12 \n" +
  1492. "\vinboundType\x18\x03 \x01(\tR\vinboundType\x12\x1c\n" +
  1493. "\tipVersion\x18\x04 \x01(\x05R\tipVersion\x12\x18\n" +
  1494. "\anetwork\x18\x05 \x01(\tR\anetwork\x12\x16\n" +
  1495. "\x06source\x18\x06 \x01(\tR\x06source\x12 \n" +
  1496. "\vdestination\x18\a \x01(\tR\vdestination\x12\x16\n" +
  1497. "\x06domain\x18\b \x01(\tR\x06domain\x12\x1a\n" +
  1498. "\bprotocol\x18\t \x01(\tR\bprotocol\x12\x12\n" +
  1499. "\x04user\x18\n" +
  1500. " \x01(\tR\x04user\x12\"\n" +
  1501. "\ffromOutbound\x18\v \x01(\tR\ffromOutbound\x12\x1c\n" +
  1502. "\tcreatedAt\x18\f \x01(\x03R\tcreatedAt\x12\x1a\n" +
  1503. "\bclosedAt\x18\r \x01(\x03R\bclosedAt\x12\x16\n" +
  1504. "\x06uplink\x18\x0e \x01(\x03R\x06uplink\x12\x1a\n" +
  1505. "\bdownlink\x18\x0f \x01(\x03R\bdownlink\x12 \n" +
  1506. "\vuplinkTotal\x18\x10 \x01(\x03R\vuplinkTotal\x12$\n" +
  1507. "\rdownlinkTotal\x18\x11 \x01(\x03R\rdownlinkTotal\x12\x12\n" +
  1508. "\x04rule\x18\x12 \x01(\tR\x04rule\x12\x1a\n" +
  1509. "\boutbound\x18\x13 \x01(\tR\boutbound\x12\"\n" +
  1510. "\foutboundType\x18\x14 \x01(\tR\foutboundType\x12\x1c\n" +
  1511. "\tchainList\x18\x15 \x03(\tR\tchainList\"(\n" +
  1512. "\x16CloseConnectionRequest\x12\x0e\n" +
  1513. "\x02id\x18\x01 \x01(\tR\x02id\"K\n" +
  1514. "\x12DeprecatedWarnings\x125\n" +
  1515. "\bwarnings\x18\x01 \x03(\v2\x19.daemon.DeprecatedWarningR\bwarnings\"q\n" +
  1516. "\x11DeprecatedWarning\x12\x18\n" +
  1517. "\amessage\x18\x01 \x01(\tR\amessage\x12\x1c\n" +
  1518. "\timpending\x18\x02 \x01(\bR\timpending\x12$\n" +
  1519. "\rmigrationLink\x18\x03 \x01(\tR\rmigrationLink\")\n" +
  1520. "\tStartedAt\x12\x1c\n" +
  1521. "\tstartedAt\x18\x01 \x01(\x03R\tstartedAt*U\n" +
  1522. "\bLogLevel\x12\t\n" +
  1523. "\x05PANIC\x10\x00\x12\t\n" +
  1524. "\x05FATAL\x10\x01\x12\t\n" +
  1525. "\x05ERROR\x10\x02\x12\b\n" +
  1526. "\x04WARN\x10\x03\x12\b\n" +
  1527. "\x04INFO\x10\x04\x12\t\n" +
  1528. "\x05DEBUG\x10\x05\x12\t\n" +
  1529. "\x05TRACE\x10\x06*3\n" +
  1530. "\x10ConnectionFilter\x12\a\n" +
  1531. "\x03ALL\x10\x00\x12\n" +
  1532. "\n" +
  1533. "\x06ACTIVE\x10\x01\x12\n" +
  1534. "\n" +
  1535. "\x06CLOSED\x10\x02*<\n" +
  1536. "\x10ConnectionSortBy\x12\b\n" +
  1537. "\x04DATE\x10\x00\x12\v\n" +
  1538. "\aTRAFFIC\x10\x01\x12\x11\n" +
  1539. "\rTOTAL_TRAFFIC\x10\x022\xf4\f\n" +
  1540. "\x0eStartedService\x12=\n" +
  1541. "\vStopService\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12?\n" +
  1542. "\rReloadService\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12K\n" +
  1543. "\x16SubscribeServiceStatus\x12\x16.google.protobuf.Empty\x1a\x15.daemon.ServiceStatus\"\x000\x01\x127\n" +
  1544. "\fSubscribeLog\x12\x16.google.protobuf.Empty\x1a\v.daemon.Log\"\x000\x01\x12G\n" +
  1545. "\x12GetDefaultLogLevel\x12\x16.google.protobuf.Empty\x1a\x17.daemon.DefaultLogLevel\"\x00\x12=\n" +
  1546. "\tClearLogs\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12E\n" +
  1547. "\x0fSubscribeStatus\x12\x1e.daemon.SubscribeStatusRequest\x1a\x0e.daemon.Status\"\x000\x01\x12=\n" +
  1548. "\x0fSubscribeGroups\x12\x16.google.protobuf.Empty\x1a\x0e.daemon.Groups\"\x000\x01\x12G\n" +
  1549. "\x12GetClashModeStatus\x12\x16.google.protobuf.Empty\x1a\x17.daemon.ClashModeStatus\"\x00\x12C\n" +
  1550. "\x12SubscribeClashMode\x12\x16.google.protobuf.Empty\x1a\x11.daemon.ClashMode\"\x000\x01\x12;\n" +
  1551. "\fSetClashMode\x12\x11.daemon.ClashMode\x1a\x16.google.protobuf.Empty\"\x00\x12;\n" +
  1552. "\aURLTest\x12\x16.daemon.URLTestRequest\x1a\x16.google.protobuf.Empty\"\x00\x12I\n" +
  1553. "\x0eSelectOutbound\x12\x1d.daemon.SelectOutboundRequest\x1a\x16.google.protobuf.Empty\"\x00\x12I\n" +
  1554. "\x0eSetGroupExpand\x12\x1d.daemon.SetGroupExpandRequest\x1a\x16.google.protobuf.Empty\"\x00\x12K\n" +
  1555. "\x14GetSystemProxyStatus\x12\x16.google.protobuf.Empty\x1a\x19.daemon.SystemProxyStatus\"\x00\x12W\n" +
  1556. "\x15SetSystemProxyEnabled\x12$.daemon.SetSystemProxyEnabledRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n" +
  1557. "\x14SubscribeConnections\x12#.daemon.SubscribeConnectionsRequest\x1a\x13.daemon.Connections\"\x000\x01\x12K\n" +
  1558. "\x0fCloseConnection\x12\x1e.daemon.CloseConnectionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12G\n" +
  1559. "\x13CloseAllConnections\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12M\n" +
  1560. "\x15GetDeprecatedWarnings\x12\x16.google.protobuf.Empty\x1a\x1a.daemon.DeprecatedWarnings\"\x00\x12;\n" +
  1561. "\fGetStartedAt\x12\x16.google.protobuf.Empty\x1a\x11.daemon.StartedAt\"\x00\x12J\n" +
  1562. "\x15SubscribeHelperEvents\x12\x16.google.protobuf.Empty\x1a\x15.daemon.HelperRequest\"\x000\x01\x12F\n" +
  1563. "\x12SendHelperResponse\x12\x16.daemon.HelperResponse\x1a\x16.google.protobuf.Empty\"\x00B%Z#github.com/sagernet/sing-box/daemonb\x06proto3"
  1564. var (
  1565. file_daemon_started_service_proto_rawDescOnce sync.Once
  1566. file_daemon_started_service_proto_rawDescData []byte
  1567. )
  1568. func file_daemon_started_service_proto_rawDescGZIP() []byte {
  1569. file_daemon_started_service_proto_rawDescOnce.Do(func() {
  1570. file_daemon_started_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_daemon_started_service_proto_rawDesc), len(file_daemon_started_service_proto_rawDesc)))
  1571. })
  1572. return file_daemon_started_service_proto_rawDescData
  1573. }
  1574. var (
  1575. file_daemon_started_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  1576. file_daemon_started_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
  1577. file_daemon_started_service_proto_goTypes = []any{
  1578. (LogLevel)(0), // 0: daemon.LogLevel
  1579. (ConnectionFilter)(0), // 1: daemon.ConnectionFilter
  1580. (ConnectionSortBy)(0), // 2: daemon.ConnectionSortBy
  1581. (ServiceStatus_Type)(0), // 3: daemon.ServiceStatus.Type
  1582. (*ServiceStatus)(nil), // 4: daemon.ServiceStatus
  1583. (*ReloadServiceRequest)(nil), // 5: daemon.ReloadServiceRequest
  1584. (*SubscribeStatusRequest)(nil), // 6: daemon.SubscribeStatusRequest
  1585. (*Log)(nil), // 7: daemon.Log
  1586. (*DefaultLogLevel)(nil), // 8: daemon.DefaultLogLevel
  1587. (*Status)(nil), // 9: daemon.Status
  1588. (*Groups)(nil), // 10: daemon.Groups
  1589. (*Group)(nil), // 11: daemon.Group
  1590. (*GroupItem)(nil), // 12: daemon.GroupItem
  1591. (*URLTestRequest)(nil), // 13: daemon.URLTestRequest
  1592. (*SelectOutboundRequest)(nil), // 14: daemon.SelectOutboundRequest
  1593. (*SetGroupExpandRequest)(nil), // 15: daemon.SetGroupExpandRequest
  1594. (*ClashMode)(nil), // 16: daemon.ClashMode
  1595. (*ClashModeStatus)(nil), // 17: daemon.ClashModeStatus
  1596. (*SystemProxyStatus)(nil), // 18: daemon.SystemProxyStatus
  1597. (*SetSystemProxyEnabledRequest)(nil), // 19: daemon.SetSystemProxyEnabledRequest
  1598. (*SubscribeConnectionsRequest)(nil), // 20: daemon.SubscribeConnectionsRequest
  1599. (*Connections)(nil), // 21: daemon.Connections
  1600. (*Connection)(nil), // 22: daemon.Connection
  1601. (*CloseConnectionRequest)(nil), // 23: daemon.CloseConnectionRequest
  1602. (*DeprecatedWarnings)(nil), // 24: daemon.DeprecatedWarnings
  1603. (*DeprecatedWarning)(nil), // 25: daemon.DeprecatedWarning
  1604. (*StartedAt)(nil), // 26: daemon.StartedAt
  1605. (*Log_Message)(nil), // 27: daemon.Log.Message
  1606. (*emptypb.Empty)(nil), // 28: google.protobuf.Empty
  1607. (*HelperResponse)(nil), // 29: daemon.HelperResponse
  1608. (*HelperRequest)(nil), // 30: daemon.HelperRequest
  1609. }
  1610. )
  1611. var file_daemon_started_service_proto_depIdxs = []int32{
  1612. 3, // 0: daemon.ServiceStatus.status:type_name -> daemon.ServiceStatus.Type
  1613. 27, // 1: daemon.Log.messages:type_name -> daemon.Log.Message
  1614. 0, // 2: daemon.DefaultLogLevel.level:type_name -> daemon.LogLevel
  1615. 11, // 3: daemon.Groups.group:type_name -> daemon.Group
  1616. 12, // 4: daemon.Group.items:type_name -> daemon.GroupItem
  1617. 1, // 5: daemon.SubscribeConnectionsRequest.filter:type_name -> daemon.ConnectionFilter
  1618. 2, // 6: daemon.SubscribeConnectionsRequest.sortBy:type_name -> daemon.ConnectionSortBy
  1619. 22, // 7: daemon.Connections.connections:type_name -> daemon.Connection
  1620. 25, // 8: daemon.DeprecatedWarnings.warnings:type_name -> daemon.DeprecatedWarning
  1621. 0, // 9: daemon.Log.Message.level:type_name -> daemon.LogLevel
  1622. 28, // 10: daemon.StartedService.StopService:input_type -> google.protobuf.Empty
  1623. 28, // 11: daemon.StartedService.ReloadService:input_type -> google.protobuf.Empty
  1624. 28, // 12: daemon.StartedService.SubscribeServiceStatus:input_type -> google.protobuf.Empty
  1625. 28, // 13: daemon.StartedService.SubscribeLog:input_type -> google.protobuf.Empty
  1626. 28, // 14: daemon.StartedService.GetDefaultLogLevel:input_type -> google.protobuf.Empty
  1627. 28, // 15: daemon.StartedService.ClearLogs:input_type -> google.protobuf.Empty
  1628. 6, // 16: daemon.StartedService.SubscribeStatus:input_type -> daemon.SubscribeStatusRequest
  1629. 28, // 17: daemon.StartedService.SubscribeGroups:input_type -> google.protobuf.Empty
  1630. 28, // 18: daemon.StartedService.GetClashModeStatus:input_type -> google.protobuf.Empty
  1631. 28, // 19: daemon.StartedService.SubscribeClashMode:input_type -> google.protobuf.Empty
  1632. 16, // 20: daemon.StartedService.SetClashMode:input_type -> daemon.ClashMode
  1633. 13, // 21: daemon.StartedService.URLTest:input_type -> daemon.URLTestRequest
  1634. 14, // 22: daemon.StartedService.SelectOutbound:input_type -> daemon.SelectOutboundRequest
  1635. 15, // 23: daemon.StartedService.SetGroupExpand:input_type -> daemon.SetGroupExpandRequest
  1636. 28, // 24: daemon.StartedService.GetSystemProxyStatus:input_type -> google.protobuf.Empty
  1637. 19, // 25: daemon.StartedService.SetSystemProxyEnabled:input_type -> daemon.SetSystemProxyEnabledRequest
  1638. 20, // 26: daemon.StartedService.SubscribeConnections:input_type -> daemon.SubscribeConnectionsRequest
  1639. 23, // 27: daemon.StartedService.CloseConnection:input_type -> daemon.CloseConnectionRequest
  1640. 28, // 28: daemon.StartedService.CloseAllConnections:input_type -> google.protobuf.Empty
  1641. 28, // 29: daemon.StartedService.GetDeprecatedWarnings:input_type -> google.protobuf.Empty
  1642. 28, // 30: daemon.StartedService.GetStartedAt:input_type -> google.protobuf.Empty
  1643. 28, // 31: daemon.StartedService.SubscribeHelperEvents:input_type -> google.protobuf.Empty
  1644. 29, // 32: daemon.StartedService.SendHelperResponse:input_type -> daemon.HelperResponse
  1645. 28, // 33: daemon.StartedService.StopService:output_type -> google.protobuf.Empty
  1646. 28, // 34: daemon.StartedService.ReloadService:output_type -> google.protobuf.Empty
  1647. 4, // 35: daemon.StartedService.SubscribeServiceStatus:output_type -> daemon.ServiceStatus
  1648. 7, // 36: daemon.StartedService.SubscribeLog:output_type -> daemon.Log
  1649. 8, // 37: daemon.StartedService.GetDefaultLogLevel:output_type -> daemon.DefaultLogLevel
  1650. 28, // 38: daemon.StartedService.ClearLogs:output_type -> google.protobuf.Empty
  1651. 9, // 39: daemon.StartedService.SubscribeStatus:output_type -> daemon.Status
  1652. 10, // 40: daemon.StartedService.SubscribeGroups:output_type -> daemon.Groups
  1653. 17, // 41: daemon.StartedService.GetClashModeStatus:output_type -> daemon.ClashModeStatus
  1654. 16, // 42: daemon.StartedService.SubscribeClashMode:output_type -> daemon.ClashMode
  1655. 28, // 43: daemon.StartedService.SetClashMode:output_type -> google.protobuf.Empty
  1656. 28, // 44: daemon.StartedService.URLTest:output_type -> google.protobuf.Empty
  1657. 28, // 45: daemon.StartedService.SelectOutbound:output_type -> google.protobuf.Empty
  1658. 28, // 46: daemon.StartedService.SetGroupExpand:output_type -> google.protobuf.Empty
  1659. 18, // 47: daemon.StartedService.GetSystemProxyStatus:output_type -> daemon.SystemProxyStatus
  1660. 28, // 48: daemon.StartedService.SetSystemProxyEnabled:output_type -> google.protobuf.Empty
  1661. 21, // 49: daemon.StartedService.SubscribeConnections:output_type -> daemon.Connections
  1662. 28, // 50: daemon.StartedService.CloseConnection:output_type -> google.protobuf.Empty
  1663. 28, // 51: daemon.StartedService.CloseAllConnections:output_type -> google.protobuf.Empty
  1664. 24, // 52: daemon.StartedService.GetDeprecatedWarnings:output_type -> daemon.DeprecatedWarnings
  1665. 26, // 53: daemon.StartedService.GetStartedAt:output_type -> daemon.StartedAt
  1666. 30, // 54: daemon.StartedService.SubscribeHelperEvents:output_type -> daemon.HelperRequest
  1667. 28, // 55: daemon.StartedService.SendHelperResponse:output_type -> google.protobuf.Empty
  1668. 33, // [33:56] is the sub-list for method output_type
  1669. 10, // [10:33] is the sub-list for method input_type
  1670. 10, // [10:10] is the sub-list for extension type_name
  1671. 10, // [10:10] is the sub-list for extension extendee
  1672. 0, // [0:10] is the sub-list for field type_name
  1673. }
  1674. func init() { file_daemon_started_service_proto_init() }
  1675. func file_daemon_started_service_proto_init() {
  1676. if File_daemon_started_service_proto != nil {
  1677. return
  1678. }
  1679. file_daemon_helper_proto_init()
  1680. type x struct{}
  1681. out := protoimpl.TypeBuilder{
  1682. File: protoimpl.DescBuilder{
  1683. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1684. RawDescriptor: unsafe.Slice(unsafe.StringData(file_daemon_started_service_proto_rawDesc), len(file_daemon_started_service_proto_rawDesc)),
  1685. NumEnums: 4,
  1686. NumMessages: 24,
  1687. NumExtensions: 0,
  1688. NumServices: 1,
  1689. },
  1690. GoTypes: file_daemon_started_service_proto_goTypes,
  1691. DependencyIndexes: file_daemon_started_service_proto_depIdxs,
  1692. EnumInfos: file_daemon_started_service_proto_enumTypes,
  1693. MessageInfos: file_daemon_started_service_proto_msgTypes,
  1694. }.Build()
  1695. File_daemon_started_service_proto = out.File
  1696. file_daemon_started_service_proto_goTypes = nil
  1697. file_daemon_started_service_proto_depIdxs = nil
  1698. }