started_service_grpc.pb.go 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  1. package daemon
  2. import (
  3. context "context"
  4. grpc "google.golang.org/grpc"
  5. codes "google.golang.org/grpc/codes"
  6. status "google.golang.org/grpc/status"
  7. emptypb "google.golang.org/protobuf/types/known/emptypb"
  8. )
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the grpc package it is being compiled against.
  11. // Requires gRPC-Go v1.64.0 or later.
  12. const _ = grpc.SupportPackageIsVersion9
  13. const (
  14. StartedService_StopService_FullMethodName = "/daemon.StartedService/StopService"
  15. StartedService_ReloadService_FullMethodName = "/daemon.StartedService/ReloadService"
  16. StartedService_SubscribeServiceStatus_FullMethodName = "/daemon.StartedService/SubscribeServiceStatus"
  17. StartedService_SubscribeLog_FullMethodName = "/daemon.StartedService/SubscribeLog"
  18. StartedService_GetDefaultLogLevel_FullMethodName = "/daemon.StartedService/GetDefaultLogLevel"
  19. StartedService_SubscribeStatus_FullMethodName = "/daemon.StartedService/SubscribeStatus"
  20. StartedService_SubscribeGroups_FullMethodName = "/daemon.StartedService/SubscribeGroups"
  21. StartedService_GetClashModeStatus_FullMethodName = "/daemon.StartedService/GetClashModeStatus"
  22. StartedService_SubscribeClashMode_FullMethodName = "/daemon.StartedService/SubscribeClashMode"
  23. StartedService_SetClashMode_FullMethodName = "/daemon.StartedService/SetClashMode"
  24. StartedService_URLTest_FullMethodName = "/daemon.StartedService/URLTest"
  25. StartedService_SelectOutbound_FullMethodName = "/daemon.StartedService/SelectOutbound"
  26. StartedService_SetGroupExpand_FullMethodName = "/daemon.StartedService/SetGroupExpand"
  27. StartedService_GetSystemProxyStatus_FullMethodName = "/daemon.StartedService/GetSystemProxyStatus"
  28. StartedService_SetSystemProxyEnabled_FullMethodName = "/daemon.StartedService/SetSystemProxyEnabled"
  29. StartedService_SubscribeConnections_FullMethodName = "/daemon.StartedService/SubscribeConnections"
  30. StartedService_CloseConnection_FullMethodName = "/daemon.StartedService/CloseConnection"
  31. StartedService_CloseAllConnections_FullMethodName = "/daemon.StartedService/CloseAllConnections"
  32. StartedService_GetDeprecatedWarnings_FullMethodName = "/daemon.StartedService/GetDeprecatedWarnings"
  33. StartedService_SubscribeHelperEvents_FullMethodName = "/daemon.StartedService/SubscribeHelperEvents"
  34. StartedService_SendHelperResponse_FullMethodName = "/daemon.StartedService/SendHelperResponse"
  35. )
  36. // StartedServiceClient is the client API for StartedService service.
  37. //
  38. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  39. type StartedServiceClient interface {
  40. StopService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  41. ReloadService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  42. SubscribeServiceStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServiceStatus], error)
  43. SubscribeLog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Log], error)
  44. GetDefaultLogLevel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DefaultLogLevel, error)
  45. SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Status], error)
  46. SubscribeGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Groups], error)
  47. GetClashModeStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClashModeStatus, error)
  48. SubscribeClashMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClashMode], error)
  49. SetClashMode(ctx context.Context, in *ClashMode, opts ...grpc.CallOption) (*emptypb.Empty, error)
  50. URLTest(ctx context.Context, in *URLTestRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  51. SelectOutbound(ctx context.Context, in *SelectOutboundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  52. SetGroupExpand(ctx context.Context, in *SetGroupExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  53. GetSystemProxyStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SystemProxyStatus, error)
  54. SetSystemProxyEnabled(ctx context.Context, in *SetSystemProxyEnabledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  55. SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Connections], error)
  56. CloseConnection(ctx context.Context, in *CloseConnectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  57. CloseAllConnections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  58. GetDeprecatedWarnings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DeprecatedWarnings, error)
  59. SubscribeHelperEvents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HelperRequest], error)
  60. SendHelperResponse(ctx context.Context, in *HelperResponse, opts ...grpc.CallOption) (*emptypb.Empty, error)
  61. }
  62. type startedServiceClient struct {
  63. cc grpc.ClientConnInterface
  64. }
  65. func NewStartedServiceClient(cc grpc.ClientConnInterface) StartedServiceClient {
  66. return &startedServiceClient{cc}
  67. }
  68. func (c *startedServiceClient) StopService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  69. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  70. out := new(emptypb.Empty)
  71. err := c.cc.Invoke(ctx, StartedService_StopService_FullMethodName, in, out, cOpts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. func (c *startedServiceClient) ReloadService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  78. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  79. out := new(emptypb.Empty)
  80. err := c.cc.Invoke(ctx, StartedService_ReloadService_FullMethodName, in, out, cOpts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *startedServiceClient) SubscribeServiceStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServiceStatus], error) {
  87. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  88. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[0], StartedService_SubscribeServiceStatus_FullMethodName, cOpts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. x := &grpc.GenericClientStream[emptypb.Empty, ServiceStatus]{ClientStream: stream}
  93. if err := x.ClientStream.SendMsg(in); err != nil {
  94. return nil, err
  95. }
  96. if err := x.ClientStream.CloseSend(); err != nil {
  97. return nil, err
  98. }
  99. return x, nil
  100. }
  101. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  102. type StartedService_SubscribeServiceStatusClient = grpc.ServerStreamingClient[ServiceStatus]
  103. func (c *startedServiceClient) SubscribeLog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Log], error) {
  104. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  105. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[1], StartedService_SubscribeLog_FullMethodName, cOpts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. x := &grpc.GenericClientStream[emptypb.Empty, Log]{ClientStream: stream}
  110. if err := x.ClientStream.SendMsg(in); err != nil {
  111. return nil, err
  112. }
  113. if err := x.ClientStream.CloseSend(); err != nil {
  114. return nil, err
  115. }
  116. return x, nil
  117. }
  118. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  119. type StartedService_SubscribeLogClient = grpc.ServerStreamingClient[Log]
  120. func (c *startedServiceClient) GetDefaultLogLevel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DefaultLogLevel, error) {
  121. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  122. out := new(DefaultLogLevel)
  123. err := c.cc.Invoke(ctx, StartedService_GetDefaultLogLevel_FullMethodName, in, out, cOpts...)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return out, nil
  128. }
  129. func (c *startedServiceClient) SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Status], error) {
  130. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  131. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[2], StartedService_SubscribeStatus_FullMethodName, cOpts...)
  132. if err != nil {
  133. return nil, err
  134. }
  135. x := &grpc.GenericClientStream[SubscribeStatusRequest, Status]{ClientStream: stream}
  136. if err := x.ClientStream.SendMsg(in); err != nil {
  137. return nil, err
  138. }
  139. if err := x.ClientStream.CloseSend(); err != nil {
  140. return nil, err
  141. }
  142. return x, nil
  143. }
  144. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  145. type StartedService_SubscribeStatusClient = grpc.ServerStreamingClient[Status]
  146. func (c *startedServiceClient) SubscribeGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Groups], error) {
  147. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  148. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[3], StartedService_SubscribeGroups_FullMethodName, cOpts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. x := &grpc.GenericClientStream[emptypb.Empty, Groups]{ClientStream: stream}
  153. if err := x.ClientStream.SendMsg(in); err != nil {
  154. return nil, err
  155. }
  156. if err := x.ClientStream.CloseSend(); err != nil {
  157. return nil, err
  158. }
  159. return x, nil
  160. }
  161. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  162. type StartedService_SubscribeGroupsClient = grpc.ServerStreamingClient[Groups]
  163. func (c *startedServiceClient) GetClashModeStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClashModeStatus, error) {
  164. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  165. out := new(ClashModeStatus)
  166. err := c.cc.Invoke(ctx, StartedService_GetClashModeStatus_FullMethodName, in, out, cOpts...)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return out, nil
  171. }
  172. func (c *startedServiceClient) SubscribeClashMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClashMode], error) {
  173. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  174. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[4], StartedService_SubscribeClashMode_FullMethodName, cOpts...)
  175. if err != nil {
  176. return nil, err
  177. }
  178. x := &grpc.GenericClientStream[emptypb.Empty, ClashMode]{ClientStream: stream}
  179. if err := x.ClientStream.SendMsg(in); err != nil {
  180. return nil, err
  181. }
  182. if err := x.ClientStream.CloseSend(); err != nil {
  183. return nil, err
  184. }
  185. return x, nil
  186. }
  187. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  188. type StartedService_SubscribeClashModeClient = grpc.ServerStreamingClient[ClashMode]
  189. func (c *startedServiceClient) SetClashMode(ctx context.Context, in *ClashMode, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  190. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  191. out := new(emptypb.Empty)
  192. err := c.cc.Invoke(ctx, StartedService_SetClashMode_FullMethodName, in, out, cOpts...)
  193. if err != nil {
  194. return nil, err
  195. }
  196. return out, nil
  197. }
  198. func (c *startedServiceClient) URLTest(ctx context.Context, in *URLTestRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  199. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  200. out := new(emptypb.Empty)
  201. err := c.cc.Invoke(ctx, StartedService_URLTest_FullMethodName, in, out, cOpts...)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return out, nil
  206. }
  207. func (c *startedServiceClient) SelectOutbound(ctx context.Context, in *SelectOutboundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  208. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  209. out := new(emptypb.Empty)
  210. err := c.cc.Invoke(ctx, StartedService_SelectOutbound_FullMethodName, in, out, cOpts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *startedServiceClient) SetGroupExpand(ctx context.Context, in *SetGroupExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  217. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  218. out := new(emptypb.Empty)
  219. err := c.cc.Invoke(ctx, StartedService_SetGroupExpand_FullMethodName, in, out, cOpts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. func (c *startedServiceClient) GetSystemProxyStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SystemProxyStatus, error) {
  226. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  227. out := new(SystemProxyStatus)
  228. err := c.cc.Invoke(ctx, StartedService_GetSystemProxyStatus_FullMethodName, in, out, cOpts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *startedServiceClient) SetSystemProxyEnabled(ctx context.Context, in *SetSystemProxyEnabledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  235. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  236. out := new(emptypb.Empty)
  237. err := c.cc.Invoke(ctx, StartedService_SetSystemProxyEnabled_FullMethodName, in, out, cOpts...)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return out, nil
  242. }
  243. func (c *startedServiceClient) SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Connections], error) {
  244. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  245. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[5], StartedService_SubscribeConnections_FullMethodName, cOpts...)
  246. if err != nil {
  247. return nil, err
  248. }
  249. x := &grpc.GenericClientStream[SubscribeConnectionsRequest, Connections]{ClientStream: stream}
  250. if err := x.ClientStream.SendMsg(in); err != nil {
  251. return nil, err
  252. }
  253. if err := x.ClientStream.CloseSend(); err != nil {
  254. return nil, err
  255. }
  256. return x, nil
  257. }
  258. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  259. type StartedService_SubscribeConnectionsClient = grpc.ServerStreamingClient[Connections]
  260. func (c *startedServiceClient) CloseConnection(ctx context.Context, in *CloseConnectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  261. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  262. out := new(emptypb.Empty)
  263. err := c.cc.Invoke(ctx, StartedService_CloseConnection_FullMethodName, in, out, cOpts...)
  264. if err != nil {
  265. return nil, err
  266. }
  267. return out, nil
  268. }
  269. func (c *startedServiceClient) CloseAllConnections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  270. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  271. out := new(emptypb.Empty)
  272. err := c.cc.Invoke(ctx, StartedService_CloseAllConnections_FullMethodName, in, out, cOpts...)
  273. if err != nil {
  274. return nil, err
  275. }
  276. return out, nil
  277. }
  278. func (c *startedServiceClient) GetDeprecatedWarnings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DeprecatedWarnings, error) {
  279. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  280. out := new(DeprecatedWarnings)
  281. err := c.cc.Invoke(ctx, StartedService_GetDeprecatedWarnings_FullMethodName, in, out, cOpts...)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return out, nil
  286. }
  287. func (c *startedServiceClient) SubscribeHelperEvents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HelperRequest], error) {
  288. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  289. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[6], StartedService_SubscribeHelperEvents_FullMethodName, cOpts...)
  290. if err != nil {
  291. return nil, err
  292. }
  293. x := &grpc.GenericClientStream[emptypb.Empty, HelperRequest]{ClientStream: stream}
  294. if err := x.ClientStream.SendMsg(in); err != nil {
  295. return nil, err
  296. }
  297. if err := x.ClientStream.CloseSend(); err != nil {
  298. return nil, err
  299. }
  300. return x, nil
  301. }
  302. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  303. type StartedService_SubscribeHelperEventsClient = grpc.ServerStreamingClient[HelperRequest]
  304. func (c *startedServiceClient) SendHelperResponse(ctx context.Context, in *HelperResponse, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  305. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  306. out := new(emptypb.Empty)
  307. err := c.cc.Invoke(ctx, StartedService_SendHelperResponse_FullMethodName, in, out, cOpts...)
  308. if err != nil {
  309. return nil, err
  310. }
  311. return out, nil
  312. }
  313. // StartedServiceServer is the server API for StartedService service.
  314. // All implementations must embed UnimplementedStartedServiceServer
  315. // for forward compatibility.
  316. type StartedServiceServer interface {
  317. StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  318. ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  319. SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error
  320. SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error
  321. GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error)
  322. SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error
  323. SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error
  324. GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error)
  325. SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error
  326. SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error)
  327. URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error)
  328. SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error)
  329. SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error)
  330. GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error)
  331. SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
  332. SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[Connections]) error
  333. CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error)
  334. CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  335. GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error)
  336. SubscribeHelperEvents(*emptypb.Empty, grpc.ServerStreamingServer[HelperRequest]) error
  337. SendHelperResponse(context.Context, *HelperResponse) (*emptypb.Empty, error)
  338. mustEmbedUnimplementedStartedServiceServer()
  339. }
  340. // UnimplementedStartedServiceServer must be embedded to have
  341. // forward compatible implementations.
  342. //
  343. // NOTE: this should be embedded by value instead of pointer to avoid a nil
  344. // pointer dereference when methods are called.
  345. type UnimplementedStartedServiceServer struct{}
  346. func (UnimplementedStartedServiceServer) StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method StopService not implemented")
  348. }
  349. func (UnimplementedStartedServiceServer) ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method ReloadService not implemented")
  351. }
  352. func (UnimplementedStartedServiceServer) SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error {
  353. return status.Errorf(codes.Unimplemented, "method SubscribeServiceStatus not implemented")
  354. }
  355. func (UnimplementedStartedServiceServer) SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error {
  356. return status.Errorf(codes.Unimplemented, "method SubscribeLog not implemented")
  357. }
  358. func (UnimplementedStartedServiceServer) GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error) {
  359. return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLogLevel not implemented")
  360. }
  361. func (UnimplementedStartedServiceServer) SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error {
  362. return status.Errorf(codes.Unimplemented, "method SubscribeStatus not implemented")
  363. }
  364. func (UnimplementedStartedServiceServer) SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error {
  365. return status.Errorf(codes.Unimplemented, "method SubscribeGroups not implemented")
  366. }
  367. func (UnimplementedStartedServiceServer) GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method GetClashModeStatus not implemented")
  369. }
  370. func (UnimplementedStartedServiceServer) SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error {
  371. return status.Errorf(codes.Unimplemented, "method SubscribeClashMode not implemented")
  372. }
  373. func (UnimplementedStartedServiceServer) SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method SetClashMode not implemented")
  375. }
  376. func (UnimplementedStartedServiceServer) URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error) {
  377. return nil, status.Errorf(codes.Unimplemented, "method URLTest not implemented")
  378. }
  379. func (UnimplementedStartedServiceServer) SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method SelectOutbound not implemented")
  381. }
  382. func (UnimplementedStartedServiceServer) SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method SetGroupExpand not implemented")
  384. }
  385. func (UnimplementedStartedServiceServer) GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method GetSystemProxyStatus not implemented")
  387. }
  388. func (UnimplementedStartedServiceServer) SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method SetSystemProxyEnabled not implemented")
  390. }
  391. func (UnimplementedStartedServiceServer) SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[Connections]) error {
  392. return status.Errorf(codes.Unimplemented, "method SubscribeConnections not implemented")
  393. }
  394. func (UnimplementedStartedServiceServer) CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error) {
  395. return nil, status.Errorf(codes.Unimplemented, "method CloseConnection not implemented")
  396. }
  397. func (UnimplementedStartedServiceServer) CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  398. return nil, status.Errorf(codes.Unimplemented, "method CloseAllConnections not implemented")
  399. }
  400. func (UnimplementedStartedServiceServer) GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error) {
  401. return nil, status.Errorf(codes.Unimplemented, "method GetDeprecatedWarnings not implemented")
  402. }
  403. func (UnimplementedStartedServiceServer) SubscribeHelperEvents(*emptypb.Empty, grpc.ServerStreamingServer[HelperRequest]) error {
  404. return status.Errorf(codes.Unimplemented, "method SubscribeHelperEvents not implemented")
  405. }
  406. func (UnimplementedStartedServiceServer) SendHelperResponse(context.Context, *HelperResponse) (*emptypb.Empty, error) {
  407. return nil, status.Errorf(codes.Unimplemented, "method SendHelperResponse not implemented")
  408. }
  409. func (UnimplementedStartedServiceServer) mustEmbedUnimplementedStartedServiceServer() {}
  410. func (UnimplementedStartedServiceServer) testEmbeddedByValue() {}
  411. // UnsafeStartedServiceServer may be embedded to opt out of forward compatibility for this service.
  412. // Use of this interface is not recommended, as added methods to StartedServiceServer will
  413. // result in compilation errors.
  414. type UnsafeStartedServiceServer interface {
  415. mustEmbedUnimplementedStartedServiceServer()
  416. }
  417. func RegisterStartedServiceServer(s grpc.ServiceRegistrar, srv StartedServiceServer) {
  418. // If the following call pancis, it indicates UnimplementedStartedServiceServer was
  419. // embedded by pointer and is nil. This will cause panics if an
  420. // unimplemented method is ever invoked, so we test this at initialization
  421. // time to prevent it from happening at runtime later due to I/O.
  422. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
  423. t.testEmbeddedByValue()
  424. }
  425. s.RegisterService(&StartedService_ServiceDesc, srv)
  426. }
  427. func _StartedService_StopService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  428. in := new(emptypb.Empty)
  429. if err := dec(in); err != nil {
  430. return nil, err
  431. }
  432. if interceptor == nil {
  433. return srv.(StartedServiceServer).StopService(ctx, in)
  434. }
  435. info := &grpc.UnaryServerInfo{
  436. Server: srv,
  437. FullMethod: StartedService_StopService_FullMethodName,
  438. }
  439. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  440. return srv.(StartedServiceServer).StopService(ctx, req.(*emptypb.Empty))
  441. }
  442. return interceptor(ctx, in, info, handler)
  443. }
  444. func _StartedService_ReloadService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  445. in := new(emptypb.Empty)
  446. if err := dec(in); err != nil {
  447. return nil, err
  448. }
  449. if interceptor == nil {
  450. return srv.(StartedServiceServer).ReloadService(ctx, in)
  451. }
  452. info := &grpc.UnaryServerInfo{
  453. Server: srv,
  454. FullMethod: StartedService_ReloadService_FullMethodName,
  455. }
  456. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  457. return srv.(StartedServiceServer).ReloadService(ctx, req.(*emptypb.Empty))
  458. }
  459. return interceptor(ctx, in, info, handler)
  460. }
  461. func _StartedService_SubscribeServiceStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
  462. m := new(emptypb.Empty)
  463. if err := stream.RecvMsg(m); err != nil {
  464. return err
  465. }
  466. return srv.(StartedServiceServer).SubscribeServiceStatus(m, &grpc.GenericServerStream[emptypb.Empty, ServiceStatus]{ServerStream: stream})
  467. }
  468. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  469. type StartedService_SubscribeServiceStatusServer = grpc.ServerStreamingServer[ServiceStatus]
  470. func _StartedService_SubscribeLog_Handler(srv interface{}, stream grpc.ServerStream) error {
  471. m := new(emptypb.Empty)
  472. if err := stream.RecvMsg(m); err != nil {
  473. return err
  474. }
  475. return srv.(StartedServiceServer).SubscribeLog(m, &grpc.GenericServerStream[emptypb.Empty, Log]{ServerStream: stream})
  476. }
  477. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  478. type StartedService_SubscribeLogServer = grpc.ServerStreamingServer[Log]
  479. func _StartedService_GetDefaultLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  480. in := new(emptypb.Empty)
  481. if err := dec(in); err != nil {
  482. return nil, err
  483. }
  484. if interceptor == nil {
  485. return srv.(StartedServiceServer).GetDefaultLogLevel(ctx, in)
  486. }
  487. info := &grpc.UnaryServerInfo{
  488. Server: srv,
  489. FullMethod: StartedService_GetDefaultLogLevel_FullMethodName,
  490. }
  491. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  492. return srv.(StartedServiceServer).GetDefaultLogLevel(ctx, req.(*emptypb.Empty))
  493. }
  494. return interceptor(ctx, in, info, handler)
  495. }
  496. func _StartedService_SubscribeStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
  497. m := new(SubscribeStatusRequest)
  498. if err := stream.RecvMsg(m); err != nil {
  499. return err
  500. }
  501. return srv.(StartedServiceServer).SubscribeStatus(m, &grpc.GenericServerStream[SubscribeStatusRequest, Status]{ServerStream: stream})
  502. }
  503. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  504. type StartedService_SubscribeStatusServer = grpc.ServerStreamingServer[Status]
  505. func _StartedService_SubscribeGroups_Handler(srv interface{}, stream grpc.ServerStream) error {
  506. m := new(emptypb.Empty)
  507. if err := stream.RecvMsg(m); err != nil {
  508. return err
  509. }
  510. return srv.(StartedServiceServer).SubscribeGroups(m, &grpc.GenericServerStream[emptypb.Empty, Groups]{ServerStream: stream})
  511. }
  512. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  513. type StartedService_SubscribeGroupsServer = grpc.ServerStreamingServer[Groups]
  514. func _StartedService_GetClashModeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  515. in := new(emptypb.Empty)
  516. if err := dec(in); err != nil {
  517. return nil, err
  518. }
  519. if interceptor == nil {
  520. return srv.(StartedServiceServer).GetClashModeStatus(ctx, in)
  521. }
  522. info := &grpc.UnaryServerInfo{
  523. Server: srv,
  524. FullMethod: StartedService_GetClashModeStatus_FullMethodName,
  525. }
  526. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  527. return srv.(StartedServiceServer).GetClashModeStatus(ctx, req.(*emptypb.Empty))
  528. }
  529. return interceptor(ctx, in, info, handler)
  530. }
  531. func _StartedService_SubscribeClashMode_Handler(srv interface{}, stream grpc.ServerStream) error {
  532. m := new(emptypb.Empty)
  533. if err := stream.RecvMsg(m); err != nil {
  534. return err
  535. }
  536. return srv.(StartedServiceServer).SubscribeClashMode(m, &grpc.GenericServerStream[emptypb.Empty, ClashMode]{ServerStream: stream})
  537. }
  538. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  539. type StartedService_SubscribeClashModeServer = grpc.ServerStreamingServer[ClashMode]
  540. func _StartedService_SetClashMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  541. in := new(ClashMode)
  542. if err := dec(in); err != nil {
  543. return nil, err
  544. }
  545. if interceptor == nil {
  546. return srv.(StartedServiceServer).SetClashMode(ctx, in)
  547. }
  548. info := &grpc.UnaryServerInfo{
  549. Server: srv,
  550. FullMethod: StartedService_SetClashMode_FullMethodName,
  551. }
  552. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  553. return srv.(StartedServiceServer).SetClashMode(ctx, req.(*ClashMode))
  554. }
  555. return interceptor(ctx, in, info, handler)
  556. }
  557. func _StartedService_URLTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  558. in := new(URLTestRequest)
  559. if err := dec(in); err != nil {
  560. return nil, err
  561. }
  562. if interceptor == nil {
  563. return srv.(StartedServiceServer).URLTest(ctx, in)
  564. }
  565. info := &grpc.UnaryServerInfo{
  566. Server: srv,
  567. FullMethod: StartedService_URLTest_FullMethodName,
  568. }
  569. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  570. return srv.(StartedServiceServer).URLTest(ctx, req.(*URLTestRequest))
  571. }
  572. return interceptor(ctx, in, info, handler)
  573. }
  574. func _StartedService_SelectOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  575. in := new(SelectOutboundRequest)
  576. if err := dec(in); err != nil {
  577. return nil, err
  578. }
  579. if interceptor == nil {
  580. return srv.(StartedServiceServer).SelectOutbound(ctx, in)
  581. }
  582. info := &grpc.UnaryServerInfo{
  583. Server: srv,
  584. FullMethod: StartedService_SelectOutbound_FullMethodName,
  585. }
  586. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  587. return srv.(StartedServiceServer).SelectOutbound(ctx, req.(*SelectOutboundRequest))
  588. }
  589. return interceptor(ctx, in, info, handler)
  590. }
  591. func _StartedService_SetGroupExpand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  592. in := new(SetGroupExpandRequest)
  593. if err := dec(in); err != nil {
  594. return nil, err
  595. }
  596. if interceptor == nil {
  597. return srv.(StartedServiceServer).SetGroupExpand(ctx, in)
  598. }
  599. info := &grpc.UnaryServerInfo{
  600. Server: srv,
  601. FullMethod: StartedService_SetGroupExpand_FullMethodName,
  602. }
  603. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  604. return srv.(StartedServiceServer).SetGroupExpand(ctx, req.(*SetGroupExpandRequest))
  605. }
  606. return interceptor(ctx, in, info, handler)
  607. }
  608. func _StartedService_GetSystemProxyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  609. in := new(emptypb.Empty)
  610. if err := dec(in); err != nil {
  611. return nil, err
  612. }
  613. if interceptor == nil {
  614. return srv.(StartedServiceServer).GetSystemProxyStatus(ctx, in)
  615. }
  616. info := &grpc.UnaryServerInfo{
  617. Server: srv,
  618. FullMethod: StartedService_GetSystemProxyStatus_FullMethodName,
  619. }
  620. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  621. return srv.(StartedServiceServer).GetSystemProxyStatus(ctx, req.(*emptypb.Empty))
  622. }
  623. return interceptor(ctx, in, info, handler)
  624. }
  625. func _StartedService_SetSystemProxyEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  626. in := new(SetSystemProxyEnabledRequest)
  627. if err := dec(in); err != nil {
  628. return nil, err
  629. }
  630. if interceptor == nil {
  631. return srv.(StartedServiceServer).SetSystemProxyEnabled(ctx, in)
  632. }
  633. info := &grpc.UnaryServerInfo{
  634. Server: srv,
  635. FullMethod: StartedService_SetSystemProxyEnabled_FullMethodName,
  636. }
  637. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  638. return srv.(StartedServiceServer).SetSystemProxyEnabled(ctx, req.(*SetSystemProxyEnabledRequest))
  639. }
  640. return interceptor(ctx, in, info, handler)
  641. }
  642. func _StartedService_SubscribeConnections_Handler(srv interface{}, stream grpc.ServerStream) error {
  643. m := new(SubscribeConnectionsRequest)
  644. if err := stream.RecvMsg(m); err != nil {
  645. return err
  646. }
  647. return srv.(StartedServiceServer).SubscribeConnections(m, &grpc.GenericServerStream[SubscribeConnectionsRequest, Connections]{ServerStream: stream})
  648. }
  649. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  650. type StartedService_SubscribeConnectionsServer = grpc.ServerStreamingServer[Connections]
  651. func _StartedService_CloseConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  652. in := new(CloseConnectionRequest)
  653. if err := dec(in); err != nil {
  654. return nil, err
  655. }
  656. if interceptor == nil {
  657. return srv.(StartedServiceServer).CloseConnection(ctx, in)
  658. }
  659. info := &grpc.UnaryServerInfo{
  660. Server: srv,
  661. FullMethod: StartedService_CloseConnection_FullMethodName,
  662. }
  663. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  664. return srv.(StartedServiceServer).CloseConnection(ctx, req.(*CloseConnectionRequest))
  665. }
  666. return interceptor(ctx, in, info, handler)
  667. }
  668. func _StartedService_CloseAllConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  669. in := new(emptypb.Empty)
  670. if err := dec(in); err != nil {
  671. return nil, err
  672. }
  673. if interceptor == nil {
  674. return srv.(StartedServiceServer).CloseAllConnections(ctx, in)
  675. }
  676. info := &grpc.UnaryServerInfo{
  677. Server: srv,
  678. FullMethod: StartedService_CloseAllConnections_FullMethodName,
  679. }
  680. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  681. return srv.(StartedServiceServer).CloseAllConnections(ctx, req.(*emptypb.Empty))
  682. }
  683. return interceptor(ctx, in, info, handler)
  684. }
  685. func _StartedService_GetDeprecatedWarnings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  686. in := new(emptypb.Empty)
  687. if err := dec(in); err != nil {
  688. return nil, err
  689. }
  690. if interceptor == nil {
  691. return srv.(StartedServiceServer).GetDeprecatedWarnings(ctx, in)
  692. }
  693. info := &grpc.UnaryServerInfo{
  694. Server: srv,
  695. FullMethod: StartedService_GetDeprecatedWarnings_FullMethodName,
  696. }
  697. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  698. return srv.(StartedServiceServer).GetDeprecatedWarnings(ctx, req.(*emptypb.Empty))
  699. }
  700. return interceptor(ctx, in, info, handler)
  701. }
  702. func _StartedService_SubscribeHelperEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
  703. m := new(emptypb.Empty)
  704. if err := stream.RecvMsg(m); err != nil {
  705. return err
  706. }
  707. return srv.(StartedServiceServer).SubscribeHelperEvents(m, &grpc.GenericServerStream[emptypb.Empty, HelperRequest]{ServerStream: stream})
  708. }
  709. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  710. type StartedService_SubscribeHelperEventsServer = grpc.ServerStreamingServer[HelperRequest]
  711. func _StartedService_SendHelperResponse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  712. in := new(HelperResponse)
  713. if err := dec(in); err != nil {
  714. return nil, err
  715. }
  716. if interceptor == nil {
  717. return srv.(StartedServiceServer).SendHelperResponse(ctx, in)
  718. }
  719. info := &grpc.UnaryServerInfo{
  720. Server: srv,
  721. FullMethod: StartedService_SendHelperResponse_FullMethodName,
  722. }
  723. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  724. return srv.(StartedServiceServer).SendHelperResponse(ctx, req.(*HelperResponse))
  725. }
  726. return interceptor(ctx, in, info, handler)
  727. }
  728. // StartedService_ServiceDesc is the grpc.ServiceDesc for StartedService service.
  729. // It's only intended for direct use with grpc.RegisterService,
  730. // and not to be introspected or modified (even as a copy)
  731. var StartedService_ServiceDesc = grpc.ServiceDesc{
  732. ServiceName: "daemon.StartedService",
  733. HandlerType: (*StartedServiceServer)(nil),
  734. Methods: []grpc.MethodDesc{
  735. {
  736. MethodName: "StopService",
  737. Handler: _StartedService_StopService_Handler,
  738. },
  739. {
  740. MethodName: "ReloadService",
  741. Handler: _StartedService_ReloadService_Handler,
  742. },
  743. {
  744. MethodName: "GetDefaultLogLevel",
  745. Handler: _StartedService_GetDefaultLogLevel_Handler,
  746. },
  747. {
  748. MethodName: "GetClashModeStatus",
  749. Handler: _StartedService_GetClashModeStatus_Handler,
  750. },
  751. {
  752. MethodName: "SetClashMode",
  753. Handler: _StartedService_SetClashMode_Handler,
  754. },
  755. {
  756. MethodName: "URLTest",
  757. Handler: _StartedService_URLTest_Handler,
  758. },
  759. {
  760. MethodName: "SelectOutbound",
  761. Handler: _StartedService_SelectOutbound_Handler,
  762. },
  763. {
  764. MethodName: "SetGroupExpand",
  765. Handler: _StartedService_SetGroupExpand_Handler,
  766. },
  767. {
  768. MethodName: "GetSystemProxyStatus",
  769. Handler: _StartedService_GetSystemProxyStatus_Handler,
  770. },
  771. {
  772. MethodName: "SetSystemProxyEnabled",
  773. Handler: _StartedService_SetSystemProxyEnabled_Handler,
  774. },
  775. {
  776. MethodName: "CloseConnection",
  777. Handler: _StartedService_CloseConnection_Handler,
  778. },
  779. {
  780. MethodName: "CloseAllConnections",
  781. Handler: _StartedService_CloseAllConnections_Handler,
  782. },
  783. {
  784. MethodName: "GetDeprecatedWarnings",
  785. Handler: _StartedService_GetDeprecatedWarnings_Handler,
  786. },
  787. {
  788. MethodName: "SendHelperResponse",
  789. Handler: _StartedService_SendHelperResponse_Handler,
  790. },
  791. },
  792. Streams: []grpc.StreamDesc{
  793. {
  794. StreamName: "SubscribeServiceStatus",
  795. Handler: _StartedService_SubscribeServiceStatus_Handler,
  796. ServerStreams: true,
  797. },
  798. {
  799. StreamName: "SubscribeLog",
  800. Handler: _StartedService_SubscribeLog_Handler,
  801. ServerStreams: true,
  802. },
  803. {
  804. StreamName: "SubscribeStatus",
  805. Handler: _StartedService_SubscribeStatus_Handler,
  806. ServerStreams: true,
  807. },
  808. {
  809. StreamName: "SubscribeGroups",
  810. Handler: _StartedService_SubscribeGroups_Handler,
  811. ServerStreams: true,
  812. },
  813. {
  814. StreamName: "SubscribeClashMode",
  815. Handler: _StartedService_SubscribeClashMode_Handler,
  816. ServerStreams: true,
  817. },
  818. {
  819. StreamName: "SubscribeConnections",
  820. Handler: _StartedService_SubscribeConnections_Handler,
  821. ServerStreams: true,
  822. },
  823. {
  824. StreamName: "SubscribeHelperEvents",
  825. Handler: _StartedService_SubscribeHelperEvents_Handler,
  826. ServerStreams: true,
  827. },
  828. },
  829. Metadata: "daemon/started_service.proto",
  830. }