command.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. package command
  2. import (
  3. context "context"
  4. proto "github.com/golang/protobuf/proto"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // This is a compile-time assertion that a sufficiently up-to-date version
  20. // of the legacy proto package is being used.
  21. const _ = proto.ProtoPackageIsVersion4
  22. type GetStatsRequest struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. // Name of the stat counter.
  27. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  28. // Whether or not to reset the counter to fetching its value.
  29. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  30. }
  31. func (x *GetStatsRequest) Reset() {
  32. *x = GetStatsRequest{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *GetStatsRequest) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*GetStatsRequest) ProtoMessage() {}
  43. func (x *GetStatsRequest) ProtoReflect() protoreflect.Message {
  44. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
  55. func (*GetStatsRequest) Descriptor() ([]byte, []int) {
  56. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *GetStatsRequest) GetName() string {
  59. if x != nil {
  60. return x.Name
  61. }
  62. return ""
  63. }
  64. func (x *GetStatsRequest) GetReset_() bool {
  65. if x != nil {
  66. return x.Reset_
  67. }
  68. return false
  69. }
  70. type Stat struct {
  71. state protoimpl.MessageState
  72. sizeCache protoimpl.SizeCache
  73. unknownFields protoimpl.UnknownFields
  74. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  75. Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  76. }
  77. func (x *Stat) Reset() {
  78. *x = Stat{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *Stat) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*Stat) ProtoMessage() {}
  89. func (x *Stat) ProtoReflect() protoreflect.Message {
  90. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[1]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use Stat.ProtoReflect.Descriptor instead.
  101. func (*Stat) Descriptor() ([]byte, []int) {
  102. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{1}
  103. }
  104. func (x *Stat) GetName() string {
  105. if x != nil {
  106. return x.Name
  107. }
  108. return ""
  109. }
  110. func (x *Stat) GetValue() int64 {
  111. if x != nil {
  112. return x.Value
  113. }
  114. return 0
  115. }
  116. type GetStatsResponse struct {
  117. state protoimpl.MessageState
  118. sizeCache protoimpl.SizeCache
  119. unknownFields protoimpl.UnknownFields
  120. Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
  121. }
  122. func (x *GetStatsResponse) Reset() {
  123. *x = GetStatsResponse{}
  124. if protoimpl.UnsafeEnabled {
  125. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[2]
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. ms.StoreMessageInfo(mi)
  128. }
  129. }
  130. func (x *GetStatsResponse) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*GetStatsResponse) ProtoMessage() {}
  134. func (x *GetStatsResponse) ProtoReflect() protoreflect.Message {
  135. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[2]
  136. if protoimpl.UnsafeEnabled && x != nil {
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. if ms.LoadMessageInfo() == nil {
  139. ms.StoreMessageInfo(mi)
  140. }
  141. return ms
  142. }
  143. return mi.MessageOf(x)
  144. }
  145. // Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
  146. func (*GetStatsResponse) Descriptor() ([]byte, []int) {
  147. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{2}
  148. }
  149. func (x *GetStatsResponse) GetStat() *Stat {
  150. if x != nil {
  151. return x.Stat
  152. }
  153. return nil
  154. }
  155. type QueryStatsRequest struct {
  156. state protoimpl.MessageState
  157. sizeCache protoimpl.SizeCache
  158. unknownFields protoimpl.UnknownFields
  159. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
  160. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  161. }
  162. func (x *QueryStatsRequest) Reset() {
  163. *x = QueryStatsRequest{}
  164. if protoimpl.UnsafeEnabled {
  165. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[3]
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. ms.StoreMessageInfo(mi)
  168. }
  169. }
  170. func (x *QueryStatsRequest) String() string {
  171. return protoimpl.X.MessageStringOf(x)
  172. }
  173. func (*QueryStatsRequest) ProtoMessage() {}
  174. func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message {
  175. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[3]
  176. if protoimpl.UnsafeEnabled && x != nil {
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. if ms.LoadMessageInfo() == nil {
  179. ms.StoreMessageInfo(mi)
  180. }
  181. return ms
  182. }
  183. return mi.MessageOf(x)
  184. }
  185. // Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead.
  186. func (*QueryStatsRequest) Descriptor() ([]byte, []int) {
  187. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{3}
  188. }
  189. func (x *QueryStatsRequest) GetPattern() string {
  190. if x != nil {
  191. return x.Pattern
  192. }
  193. return ""
  194. }
  195. func (x *QueryStatsRequest) GetReset_() bool {
  196. if x != nil {
  197. return x.Reset_
  198. }
  199. return false
  200. }
  201. type QueryStatsResponse struct {
  202. state protoimpl.MessageState
  203. sizeCache protoimpl.SizeCache
  204. unknownFields protoimpl.UnknownFields
  205. Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"`
  206. }
  207. func (x *QueryStatsResponse) Reset() {
  208. *x = QueryStatsResponse{}
  209. if protoimpl.UnsafeEnabled {
  210. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[4]
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. ms.StoreMessageInfo(mi)
  213. }
  214. }
  215. func (x *QueryStatsResponse) String() string {
  216. return protoimpl.X.MessageStringOf(x)
  217. }
  218. func (*QueryStatsResponse) ProtoMessage() {}
  219. func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message {
  220. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[4]
  221. if protoimpl.UnsafeEnabled && x != nil {
  222. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  223. if ms.LoadMessageInfo() == nil {
  224. ms.StoreMessageInfo(mi)
  225. }
  226. return ms
  227. }
  228. return mi.MessageOf(x)
  229. }
  230. // Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead.
  231. func (*QueryStatsResponse) Descriptor() ([]byte, []int) {
  232. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{4}
  233. }
  234. func (x *QueryStatsResponse) GetStat() []*Stat {
  235. if x != nil {
  236. return x.Stat
  237. }
  238. return nil
  239. }
  240. type SysStatsRequest struct {
  241. state protoimpl.MessageState
  242. sizeCache protoimpl.SizeCache
  243. unknownFields protoimpl.UnknownFields
  244. }
  245. func (x *SysStatsRequest) Reset() {
  246. *x = SysStatsRequest{}
  247. if protoimpl.UnsafeEnabled {
  248. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[5]
  249. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  250. ms.StoreMessageInfo(mi)
  251. }
  252. }
  253. func (x *SysStatsRequest) String() string {
  254. return protoimpl.X.MessageStringOf(x)
  255. }
  256. func (*SysStatsRequest) ProtoMessage() {}
  257. func (x *SysStatsRequest) ProtoReflect() protoreflect.Message {
  258. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[5]
  259. if protoimpl.UnsafeEnabled && x != nil {
  260. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  261. if ms.LoadMessageInfo() == nil {
  262. ms.StoreMessageInfo(mi)
  263. }
  264. return ms
  265. }
  266. return mi.MessageOf(x)
  267. }
  268. // Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead.
  269. func (*SysStatsRequest) Descriptor() ([]byte, []int) {
  270. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{5}
  271. }
  272. type SysStatsResponse struct {
  273. state protoimpl.MessageState
  274. sizeCache protoimpl.SizeCache
  275. unknownFields protoimpl.UnknownFields
  276. NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"`
  277. NumGC uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"`
  278. Alloc uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"`
  279. TotalAlloc uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"`
  280. Sys uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"`
  281. Mallocs uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"`
  282. Frees uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"`
  283. LiveObjects uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"`
  284. PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"`
  285. Uptime uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"`
  286. }
  287. func (x *SysStatsResponse) Reset() {
  288. *x = SysStatsResponse{}
  289. if protoimpl.UnsafeEnabled {
  290. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[6]
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. ms.StoreMessageInfo(mi)
  293. }
  294. }
  295. func (x *SysStatsResponse) String() string {
  296. return protoimpl.X.MessageStringOf(x)
  297. }
  298. func (*SysStatsResponse) ProtoMessage() {}
  299. func (x *SysStatsResponse) ProtoReflect() protoreflect.Message {
  300. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[6]
  301. if protoimpl.UnsafeEnabled && x != nil {
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. if ms.LoadMessageInfo() == nil {
  304. ms.StoreMessageInfo(mi)
  305. }
  306. return ms
  307. }
  308. return mi.MessageOf(x)
  309. }
  310. // Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead.
  311. func (*SysStatsResponse) Descriptor() ([]byte, []int) {
  312. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{6}
  313. }
  314. func (x *SysStatsResponse) GetNumGoroutine() uint32 {
  315. if x != nil {
  316. return x.NumGoroutine
  317. }
  318. return 0
  319. }
  320. func (x *SysStatsResponse) GetNumGC() uint32 {
  321. if x != nil {
  322. return x.NumGC
  323. }
  324. return 0
  325. }
  326. func (x *SysStatsResponse) GetAlloc() uint64 {
  327. if x != nil {
  328. return x.Alloc
  329. }
  330. return 0
  331. }
  332. func (x *SysStatsResponse) GetTotalAlloc() uint64 {
  333. if x != nil {
  334. return x.TotalAlloc
  335. }
  336. return 0
  337. }
  338. func (x *SysStatsResponse) GetSys() uint64 {
  339. if x != nil {
  340. return x.Sys
  341. }
  342. return 0
  343. }
  344. func (x *SysStatsResponse) GetMallocs() uint64 {
  345. if x != nil {
  346. return x.Mallocs
  347. }
  348. return 0
  349. }
  350. func (x *SysStatsResponse) GetFrees() uint64 {
  351. if x != nil {
  352. return x.Frees
  353. }
  354. return 0
  355. }
  356. func (x *SysStatsResponse) GetLiveObjects() uint64 {
  357. if x != nil {
  358. return x.LiveObjects
  359. }
  360. return 0
  361. }
  362. func (x *SysStatsResponse) GetPauseTotalNs() uint64 {
  363. if x != nil {
  364. return x.PauseTotalNs
  365. }
  366. return 0
  367. }
  368. func (x *SysStatsResponse) GetUptime() uint32 {
  369. if x != nil {
  370. return x.Uptime
  371. }
  372. return 0
  373. }
  374. type Config struct {
  375. state protoimpl.MessageState
  376. sizeCache protoimpl.SizeCache
  377. unknownFields protoimpl.UnknownFields
  378. }
  379. func (x *Config) Reset() {
  380. *x = Config{}
  381. if protoimpl.UnsafeEnabled {
  382. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[7]
  383. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  384. ms.StoreMessageInfo(mi)
  385. }
  386. }
  387. func (x *Config) String() string {
  388. return protoimpl.X.MessageStringOf(x)
  389. }
  390. func (*Config) ProtoMessage() {}
  391. func (x *Config) ProtoReflect() protoreflect.Message {
  392. mi := &file_v2ray_com_core_app_stats_command_command_proto_msgTypes[7]
  393. if protoimpl.UnsafeEnabled && x != nil {
  394. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  395. if ms.LoadMessageInfo() == nil {
  396. ms.StoreMessageInfo(mi)
  397. }
  398. return ms
  399. }
  400. return mi.MessageOf(x)
  401. }
  402. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  403. func (*Config) Descriptor() ([]byte, []int) {
  404. return file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP(), []int{7}
  405. }
  406. var File_v2ray_com_core_app_stats_command_command_proto protoreflect.FileDescriptor
  407. var file_v2ray_com_core_app_stats_command_command_proto_rawDesc = []byte{
  408. 0x0a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  409. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
  410. 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  411. 0x12, 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  412. 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x3b,
  413. 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  414. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  415. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x02,
  416. 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x04, 0x53,
  417. 0x74, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  418. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  419. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4a, 0x0a,
  420. 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  421. 0x65, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  422. 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  423. 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53,
  424. 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x22, 0x43, 0x0a, 0x11, 0x51, 0x75, 0x65,
  425. 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18,
  426. 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  427. 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65,
  428. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0x4c,
  429. 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
  430. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x03,
  431. 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  432. 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  433. 0x64, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x22, 0x11, 0x0a, 0x0f,
  434. 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
  435. 0xa2, 0x02, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
  436. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x4e, 0x75, 0x6d, 0x47, 0x6f, 0x72, 0x6f, 0x75,
  437. 0x74, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x4e, 0x75, 0x6d, 0x47,
  438. 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x4e, 0x75, 0x6d, 0x47,
  439. 0x43, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x4e, 0x75, 0x6d, 0x47, 0x43, 0x12, 0x14,
  440. 0x0a, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x41,
  441. 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x6c,
  442. 0x6f, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x41,
  443. 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x79, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
  444. 0x04, 0x52, 0x03, 0x53, 0x79, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63,
  445. 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x4d, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x73,
  446. 0x12, 0x14, 0x0a, 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52,
  447. 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4c, 0x69, 0x76, 0x65, 0x4f, 0x62,
  448. 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x4c, 0x69, 0x76,
  449. 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x50, 0x61, 0x75, 0x73,
  450. 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c,
  451. 0x50, 0x61, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x12, 0x16, 0x0a, 0x06,
  452. 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x55, 0x70,
  453. 0x74, 0x69, 0x6d, 0x65, 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xde,
  454. 0x02, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
  455. 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x76, 0x32,
  456. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61,
  457. 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74,
  458. 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x32, 0x72,
  459. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74,
  460. 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61,
  461. 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x0a,
  462. 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x76, 0x32, 0x72,
  463. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74,
  464. 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53,
  465. 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x76, 0x32,
  466. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61,
  467. 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
  468. 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
  469. 0x6e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x2d,
  470. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  471. 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53, 0x79,
  472. 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e,
  473. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73,
  474. 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53, 0x79, 0x73,
  475. 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42,
  476. 0x4c, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  477. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  478. 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02,
  479. 0x1c, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e,
  480. 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70,
  481. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  482. }
  483. var (
  484. file_v2ray_com_core_app_stats_command_command_proto_rawDescOnce sync.Once
  485. file_v2ray_com_core_app_stats_command_command_proto_rawDescData = file_v2ray_com_core_app_stats_command_command_proto_rawDesc
  486. )
  487. func file_v2ray_com_core_app_stats_command_command_proto_rawDescGZIP() []byte {
  488. file_v2ray_com_core_app_stats_command_command_proto_rawDescOnce.Do(func() {
  489. file_v2ray_com_core_app_stats_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_app_stats_command_command_proto_rawDescData)
  490. })
  491. return file_v2ray_com_core_app_stats_command_command_proto_rawDescData
  492. }
  493. var file_v2ray_com_core_app_stats_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  494. var file_v2ray_com_core_app_stats_command_command_proto_goTypes = []interface{}{
  495. (*GetStatsRequest)(nil), // 0: v2ray.core.app.stats.command.GetStatsRequest
  496. (*Stat)(nil), // 1: v2ray.core.app.stats.command.Stat
  497. (*GetStatsResponse)(nil), // 2: v2ray.core.app.stats.command.GetStatsResponse
  498. (*QueryStatsRequest)(nil), // 3: v2ray.core.app.stats.command.QueryStatsRequest
  499. (*QueryStatsResponse)(nil), // 4: v2ray.core.app.stats.command.QueryStatsResponse
  500. (*SysStatsRequest)(nil), // 5: v2ray.core.app.stats.command.SysStatsRequest
  501. (*SysStatsResponse)(nil), // 6: v2ray.core.app.stats.command.SysStatsResponse
  502. (*Config)(nil), // 7: v2ray.core.app.stats.command.Config
  503. }
  504. var file_v2ray_com_core_app_stats_command_command_proto_depIdxs = []int32{
  505. 1, // 0: v2ray.core.app.stats.command.GetStatsResponse.stat:type_name -> v2ray.core.app.stats.command.Stat
  506. 1, // 1: v2ray.core.app.stats.command.QueryStatsResponse.stat:type_name -> v2ray.core.app.stats.command.Stat
  507. 0, // 2: v2ray.core.app.stats.command.StatsService.GetStats:input_type -> v2ray.core.app.stats.command.GetStatsRequest
  508. 3, // 3: v2ray.core.app.stats.command.StatsService.QueryStats:input_type -> v2ray.core.app.stats.command.QueryStatsRequest
  509. 5, // 4: v2ray.core.app.stats.command.StatsService.GetSysStats:input_type -> v2ray.core.app.stats.command.SysStatsRequest
  510. 2, // 5: v2ray.core.app.stats.command.StatsService.GetStats:output_type -> v2ray.core.app.stats.command.GetStatsResponse
  511. 4, // 6: v2ray.core.app.stats.command.StatsService.QueryStats:output_type -> v2ray.core.app.stats.command.QueryStatsResponse
  512. 6, // 7: v2ray.core.app.stats.command.StatsService.GetSysStats:output_type -> v2ray.core.app.stats.command.SysStatsResponse
  513. 5, // [5:8] is the sub-list for method output_type
  514. 2, // [2:5] is the sub-list for method input_type
  515. 2, // [2:2] is the sub-list for extension type_name
  516. 2, // [2:2] is the sub-list for extension extendee
  517. 0, // [0:2] is the sub-list for field type_name
  518. }
  519. func init() { file_v2ray_com_core_app_stats_command_command_proto_init() }
  520. func file_v2ray_com_core_app_stats_command_command_proto_init() {
  521. if File_v2ray_com_core_app_stats_command_command_proto != nil {
  522. return
  523. }
  524. if !protoimpl.UnsafeEnabled {
  525. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  526. switch v := v.(*GetStatsRequest); i {
  527. case 0:
  528. return &v.state
  529. case 1:
  530. return &v.sizeCache
  531. case 2:
  532. return &v.unknownFields
  533. default:
  534. return nil
  535. }
  536. }
  537. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  538. switch v := v.(*Stat); i {
  539. case 0:
  540. return &v.state
  541. case 1:
  542. return &v.sizeCache
  543. case 2:
  544. return &v.unknownFields
  545. default:
  546. return nil
  547. }
  548. }
  549. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  550. switch v := v.(*GetStatsResponse); i {
  551. case 0:
  552. return &v.state
  553. case 1:
  554. return &v.sizeCache
  555. case 2:
  556. return &v.unknownFields
  557. default:
  558. return nil
  559. }
  560. }
  561. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  562. switch v := v.(*QueryStatsRequest); i {
  563. case 0:
  564. return &v.state
  565. case 1:
  566. return &v.sizeCache
  567. case 2:
  568. return &v.unknownFields
  569. default:
  570. return nil
  571. }
  572. }
  573. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  574. switch v := v.(*QueryStatsResponse); i {
  575. case 0:
  576. return &v.state
  577. case 1:
  578. return &v.sizeCache
  579. case 2:
  580. return &v.unknownFields
  581. default:
  582. return nil
  583. }
  584. }
  585. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  586. switch v := v.(*SysStatsRequest); i {
  587. case 0:
  588. return &v.state
  589. case 1:
  590. return &v.sizeCache
  591. case 2:
  592. return &v.unknownFields
  593. default:
  594. return nil
  595. }
  596. }
  597. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  598. switch v := v.(*SysStatsResponse); i {
  599. case 0:
  600. return &v.state
  601. case 1:
  602. return &v.sizeCache
  603. case 2:
  604. return &v.unknownFields
  605. default:
  606. return nil
  607. }
  608. }
  609. file_v2ray_com_core_app_stats_command_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  610. switch v := v.(*Config); i {
  611. case 0:
  612. return &v.state
  613. case 1:
  614. return &v.sizeCache
  615. case 2:
  616. return &v.unknownFields
  617. default:
  618. return nil
  619. }
  620. }
  621. }
  622. type x struct{}
  623. out := protoimpl.TypeBuilder{
  624. File: protoimpl.DescBuilder{
  625. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  626. RawDescriptor: file_v2ray_com_core_app_stats_command_command_proto_rawDesc,
  627. NumEnums: 0,
  628. NumMessages: 8,
  629. NumExtensions: 0,
  630. NumServices: 1,
  631. },
  632. GoTypes: file_v2ray_com_core_app_stats_command_command_proto_goTypes,
  633. DependencyIndexes: file_v2ray_com_core_app_stats_command_command_proto_depIdxs,
  634. MessageInfos: file_v2ray_com_core_app_stats_command_command_proto_msgTypes,
  635. }.Build()
  636. File_v2ray_com_core_app_stats_command_command_proto = out.File
  637. file_v2ray_com_core_app_stats_command_command_proto_rawDesc = nil
  638. file_v2ray_com_core_app_stats_command_command_proto_goTypes = nil
  639. file_v2ray_com_core_app_stats_command_command_proto_depIdxs = nil
  640. }
  641. // Reference imports to suppress errors if they are not otherwise used.
  642. var _ context.Context
  643. var _ grpc.ClientConnInterface
  644. // This is a compile-time assertion to ensure that this generated file
  645. // is compatible with the grpc package it is being compiled against.
  646. const _ = grpc.SupportPackageIsVersion6
  647. // StatsServiceClient is the client API for StatsService service.
  648. //
  649. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  650. type StatsServiceClient interface {
  651. GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
  652. QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error)
  653. GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error)
  654. }
  655. type statsServiceClient struct {
  656. cc grpc.ClientConnInterface
  657. }
  658. func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient {
  659. return &statsServiceClient{cc}
  660. }
  661. func (c *statsServiceClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) {
  662. out := new(GetStatsResponse)
  663. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/GetStats", in, out, opts...)
  664. if err != nil {
  665. return nil, err
  666. }
  667. return out, nil
  668. }
  669. func (c *statsServiceClient) QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) {
  670. out := new(QueryStatsResponse)
  671. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/QueryStats", in, out, opts...)
  672. if err != nil {
  673. return nil, err
  674. }
  675. return out, nil
  676. }
  677. func (c *statsServiceClient) GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error) {
  678. out := new(SysStatsResponse)
  679. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/GetSysStats", in, out, opts...)
  680. if err != nil {
  681. return nil, err
  682. }
  683. return out, nil
  684. }
  685. // StatsServiceServer is the server API for StatsService service.
  686. type StatsServiceServer interface {
  687. GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
  688. QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
  689. GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
  690. }
  691. // UnimplementedStatsServiceServer can be embedded to have forward compatible implementations.
  692. type UnimplementedStatsServiceServer struct {
  693. }
  694. func (*UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) {
  695. return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
  696. }
  697. func (*UnimplementedStatsServiceServer) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error) {
  698. return nil, status.Errorf(codes.Unimplemented, "method QueryStats not implemented")
  699. }
  700. func (*UnimplementedStatsServiceServer) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error) {
  701. return nil, status.Errorf(codes.Unimplemented, "method GetSysStats not implemented")
  702. }
  703. func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer) {
  704. s.RegisterService(&_StatsService_serviceDesc, srv)
  705. }
  706. func _StatsService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  707. in := new(GetStatsRequest)
  708. if err := dec(in); err != nil {
  709. return nil, err
  710. }
  711. if interceptor == nil {
  712. return srv.(StatsServiceServer).GetStats(ctx, in)
  713. }
  714. info := &grpc.UnaryServerInfo{
  715. Server: srv,
  716. FullMethod: "/v2ray.core.app.stats.command.StatsService/GetStats",
  717. }
  718. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  719. return srv.(StatsServiceServer).GetStats(ctx, req.(*GetStatsRequest))
  720. }
  721. return interceptor(ctx, in, info, handler)
  722. }
  723. func _StatsService_QueryStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  724. in := new(QueryStatsRequest)
  725. if err := dec(in); err != nil {
  726. return nil, err
  727. }
  728. if interceptor == nil {
  729. return srv.(StatsServiceServer).QueryStats(ctx, in)
  730. }
  731. info := &grpc.UnaryServerInfo{
  732. Server: srv,
  733. FullMethod: "/v2ray.core.app.stats.command.StatsService/QueryStats",
  734. }
  735. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  736. return srv.(StatsServiceServer).QueryStats(ctx, req.(*QueryStatsRequest))
  737. }
  738. return interceptor(ctx, in, info, handler)
  739. }
  740. func _StatsService_GetSysStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  741. in := new(SysStatsRequest)
  742. if err := dec(in); err != nil {
  743. return nil, err
  744. }
  745. if interceptor == nil {
  746. return srv.(StatsServiceServer).GetSysStats(ctx, in)
  747. }
  748. info := &grpc.UnaryServerInfo{
  749. Server: srv,
  750. FullMethod: "/v2ray.core.app.stats.command.StatsService/GetSysStats",
  751. }
  752. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  753. return srv.(StatsServiceServer).GetSysStats(ctx, req.(*SysStatsRequest))
  754. }
  755. return interceptor(ctx, in, info, handler)
  756. }
  757. var _StatsService_serviceDesc = grpc.ServiceDesc{
  758. ServiceName: "v2ray.core.app.stats.command.StatsService",
  759. HandlerType: (*StatsServiceServer)(nil),
  760. Methods: []grpc.MethodDesc{
  761. {
  762. MethodName: "GetStats",
  763. Handler: _StatsService_GetStats_Handler,
  764. },
  765. {
  766. MethodName: "QueryStats",
  767. Handler: _StatsService_QueryStats_Handler,
  768. },
  769. {
  770. MethodName: "GetSysStats",
  771. Handler: _StatsService_GetSysStats_Handler,
  772. },
  773. },
  774. Streams: []grpc.StreamDesc{},
  775. Metadata: "v2ray.com/core/app/stats/command/command.proto",
  776. }