started_service_grpc.pb.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  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_ClearLogs_FullMethodName = "/daemon.StartedService/ClearLogs"
  20. StartedService_SubscribeStatus_FullMethodName = "/daemon.StartedService/SubscribeStatus"
  21. StartedService_SubscribeGroups_FullMethodName = "/daemon.StartedService/SubscribeGroups"
  22. StartedService_GetClashModeStatus_FullMethodName = "/daemon.StartedService/GetClashModeStatus"
  23. StartedService_SubscribeClashMode_FullMethodName = "/daemon.StartedService/SubscribeClashMode"
  24. StartedService_SetClashMode_FullMethodName = "/daemon.StartedService/SetClashMode"
  25. StartedService_URLTest_FullMethodName = "/daemon.StartedService/URLTest"
  26. StartedService_SelectOutbound_FullMethodName = "/daemon.StartedService/SelectOutbound"
  27. StartedService_SetGroupExpand_FullMethodName = "/daemon.StartedService/SetGroupExpand"
  28. StartedService_GetSystemProxyStatus_FullMethodName = "/daemon.StartedService/GetSystemProxyStatus"
  29. StartedService_SetSystemProxyEnabled_FullMethodName = "/daemon.StartedService/SetSystemProxyEnabled"
  30. StartedService_SubscribeConnections_FullMethodName = "/daemon.StartedService/SubscribeConnections"
  31. StartedService_CloseConnection_FullMethodName = "/daemon.StartedService/CloseConnection"
  32. StartedService_CloseAllConnections_FullMethodName = "/daemon.StartedService/CloseAllConnections"
  33. StartedService_GetDeprecatedWarnings_FullMethodName = "/daemon.StartedService/GetDeprecatedWarnings"
  34. StartedService_GetStartedAt_FullMethodName = "/daemon.StartedService/GetStartedAt"
  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. ClearLogs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  46. SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Status], error)
  47. SubscribeGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Groups], error)
  48. GetClashModeStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClashModeStatus, error)
  49. SubscribeClashMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClashMode], error)
  50. SetClashMode(ctx context.Context, in *ClashMode, opts ...grpc.CallOption) (*emptypb.Empty, error)
  51. URLTest(ctx context.Context, in *URLTestRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  52. SelectOutbound(ctx context.Context, in *SelectOutboundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  53. SetGroupExpand(ctx context.Context, in *SetGroupExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  54. GetSystemProxyStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SystemProxyStatus, error)
  55. SetSystemProxyEnabled(ctx context.Context, in *SetSystemProxyEnabledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  56. SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ConnectionEvents], error)
  57. CloseConnection(ctx context.Context, in *CloseConnectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  58. CloseAllConnections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  59. GetDeprecatedWarnings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DeprecatedWarnings, error)
  60. GetStartedAt(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StartedAt, 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) ClearLogs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  130. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  131. out := new(emptypb.Empty)
  132. err := c.cc.Invoke(ctx, StartedService_ClearLogs_FullMethodName, in, out, cOpts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *startedServiceClient) SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Status], error) {
  139. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  140. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[2], StartedService_SubscribeStatus_FullMethodName, cOpts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. x := &grpc.GenericClientStream[SubscribeStatusRequest, Status]{ClientStream: stream}
  145. if err := x.ClientStream.SendMsg(in); err != nil {
  146. return nil, err
  147. }
  148. if err := x.ClientStream.CloseSend(); err != nil {
  149. return nil, err
  150. }
  151. return x, nil
  152. }
  153. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  154. type StartedService_SubscribeStatusClient = grpc.ServerStreamingClient[Status]
  155. func (c *startedServiceClient) SubscribeGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Groups], error) {
  156. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  157. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[3], StartedService_SubscribeGroups_FullMethodName, cOpts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. x := &grpc.GenericClientStream[emptypb.Empty, Groups]{ClientStream: stream}
  162. if err := x.ClientStream.SendMsg(in); err != nil {
  163. return nil, err
  164. }
  165. if err := x.ClientStream.CloseSend(); err != nil {
  166. return nil, err
  167. }
  168. return x, nil
  169. }
  170. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  171. type StartedService_SubscribeGroupsClient = grpc.ServerStreamingClient[Groups]
  172. func (c *startedServiceClient) GetClashModeStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClashModeStatus, error) {
  173. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  174. out := new(ClashModeStatus)
  175. err := c.cc.Invoke(ctx, StartedService_GetClashModeStatus_FullMethodName, in, out, cOpts...)
  176. if err != nil {
  177. return nil, err
  178. }
  179. return out, nil
  180. }
  181. func (c *startedServiceClient) SubscribeClashMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClashMode], error) {
  182. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  183. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[4], StartedService_SubscribeClashMode_FullMethodName, cOpts...)
  184. if err != nil {
  185. return nil, err
  186. }
  187. x := &grpc.GenericClientStream[emptypb.Empty, ClashMode]{ClientStream: stream}
  188. if err := x.ClientStream.SendMsg(in); err != nil {
  189. return nil, err
  190. }
  191. if err := x.ClientStream.CloseSend(); err != nil {
  192. return nil, err
  193. }
  194. return x, nil
  195. }
  196. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  197. type StartedService_SubscribeClashModeClient = grpc.ServerStreamingClient[ClashMode]
  198. func (c *startedServiceClient) SetClashMode(ctx context.Context, in *ClashMode, 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_SetClashMode_FullMethodName, in, out, cOpts...)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return out, nil
  206. }
  207. func (c *startedServiceClient) URLTest(ctx context.Context, in *URLTestRequest, 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_URLTest_FullMethodName, in, out, cOpts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *startedServiceClient) SelectOutbound(ctx context.Context, in *SelectOutboundRequest, 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_SelectOutbound_FullMethodName, in, out, cOpts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. func (c *startedServiceClient) SetGroupExpand(ctx context.Context, in *SetGroupExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  226. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  227. out := new(emptypb.Empty)
  228. err := c.cc.Invoke(ctx, StartedService_SetGroupExpand_FullMethodName, in, out, cOpts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *startedServiceClient) GetSystemProxyStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SystemProxyStatus, error) {
  235. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  236. out := new(SystemProxyStatus)
  237. err := c.cc.Invoke(ctx, StartedService_GetSystemProxyStatus_FullMethodName, in, out, cOpts...)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return out, nil
  242. }
  243. func (c *startedServiceClient) SetSystemProxyEnabled(ctx context.Context, in *SetSystemProxyEnabledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  244. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  245. out := new(emptypb.Empty)
  246. err := c.cc.Invoke(ctx, StartedService_SetSystemProxyEnabled_FullMethodName, in, out, cOpts...)
  247. if err != nil {
  248. return nil, err
  249. }
  250. return out, nil
  251. }
  252. func (c *startedServiceClient) SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ConnectionEvents], error) {
  253. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  254. stream, err := c.cc.NewStream(ctx, &StartedService_ServiceDesc.Streams[5], StartedService_SubscribeConnections_FullMethodName, cOpts...)
  255. if err != nil {
  256. return nil, err
  257. }
  258. x := &grpc.GenericClientStream[SubscribeConnectionsRequest, ConnectionEvents]{ClientStream: stream}
  259. if err := x.ClientStream.SendMsg(in); err != nil {
  260. return nil, err
  261. }
  262. if err := x.ClientStream.CloseSend(); err != nil {
  263. return nil, err
  264. }
  265. return x, nil
  266. }
  267. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  268. type StartedService_SubscribeConnectionsClient = grpc.ServerStreamingClient[ConnectionEvents]
  269. func (c *startedServiceClient) CloseConnection(ctx context.Context, in *CloseConnectionRequest, 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_CloseConnection_FullMethodName, in, out, cOpts...)
  273. if err != nil {
  274. return nil, err
  275. }
  276. return out, nil
  277. }
  278. func (c *startedServiceClient) CloseAllConnections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  279. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  280. out := new(emptypb.Empty)
  281. err := c.cc.Invoke(ctx, StartedService_CloseAllConnections_FullMethodName, in, out, cOpts...)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return out, nil
  286. }
  287. func (c *startedServiceClient) GetDeprecatedWarnings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DeprecatedWarnings, error) {
  288. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  289. out := new(DeprecatedWarnings)
  290. err := c.cc.Invoke(ctx, StartedService_GetDeprecatedWarnings_FullMethodName, in, out, cOpts...)
  291. if err != nil {
  292. return nil, err
  293. }
  294. return out, nil
  295. }
  296. func (c *startedServiceClient) GetStartedAt(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StartedAt, error) {
  297. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  298. out := new(StartedAt)
  299. err := c.cc.Invoke(ctx, StartedService_GetStartedAt_FullMethodName, in, out, cOpts...)
  300. if err != nil {
  301. return nil, err
  302. }
  303. return out, nil
  304. }
  305. // StartedServiceServer is the server API for StartedService service.
  306. // All implementations must embed UnimplementedStartedServiceServer
  307. // for forward compatibility.
  308. type StartedServiceServer interface {
  309. StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  310. ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  311. SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error
  312. SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error
  313. GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error)
  314. ClearLogs(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  315. SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error
  316. SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error
  317. GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error)
  318. SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error
  319. SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error)
  320. URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error)
  321. SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error)
  322. SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error)
  323. GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error)
  324. SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
  325. SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[ConnectionEvents]) error
  326. CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error)
  327. CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  328. GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error)
  329. GetStartedAt(context.Context, *emptypb.Empty) (*StartedAt, error)
  330. mustEmbedUnimplementedStartedServiceServer()
  331. }
  332. // UnimplementedStartedServiceServer must be embedded to have
  333. // forward compatible implementations.
  334. //
  335. // NOTE: this should be embedded by value instead of pointer to avoid a nil
  336. // pointer dereference when methods are called.
  337. type UnimplementedStartedServiceServer struct{}
  338. func (UnimplementedStartedServiceServer) StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  339. return nil, status.Error(codes.Unimplemented, "method StopService not implemented")
  340. }
  341. func (UnimplementedStartedServiceServer) ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  342. return nil, status.Error(codes.Unimplemented, "method ReloadService not implemented")
  343. }
  344. func (UnimplementedStartedServiceServer) SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error {
  345. return status.Error(codes.Unimplemented, "method SubscribeServiceStatus not implemented")
  346. }
  347. func (UnimplementedStartedServiceServer) SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error {
  348. return status.Error(codes.Unimplemented, "method SubscribeLog not implemented")
  349. }
  350. func (UnimplementedStartedServiceServer) GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error) {
  351. return nil, status.Error(codes.Unimplemented, "method GetDefaultLogLevel not implemented")
  352. }
  353. func (UnimplementedStartedServiceServer) ClearLogs(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  354. return nil, status.Error(codes.Unimplemented, "method ClearLogs not implemented")
  355. }
  356. func (UnimplementedStartedServiceServer) SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error {
  357. return status.Error(codes.Unimplemented, "method SubscribeStatus not implemented")
  358. }
  359. func (UnimplementedStartedServiceServer) SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error {
  360. return status.Error(codes.Unimplemented, "method SubscribeGroups not implemented")
  361. }
  362. func (UnimplementedStartedServiceServer) GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error) {
  363. return nil, status.Error(codes.Unimplemented, "method GetClashModeStatus not implemented")
  364. }
  365. func (UnimplementedStartedServiceServer) SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error {
  366. return status.Error(codes.Unimplemented, "method SubscribeClashMode not implemented")
  367. }
  368. func (UnimplementedStartedServiceServer) SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error) {
  369. return nil, status.Error(codes.Unimplemented, "method SetClashMode not implemented")
  370. }
  371. func (UnimplementedStartedServiceServer) URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error) {
  372. return nil, status.Error(codes.Unimplemented, "method URLTest not implemented")
  373. }
  374. func (UnimplementedStartedServiceServer) SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error) {
  375. return nil, status.Error(codes.Unimplemented, "method SelectOutbound not implemented")
  376. }
  377. func (UnimplementedStartedServiceServer) SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error) {
  378. return nil, status.Error(codes.Unimplemented, "method SetGroupExpand not implemented")
  379. }
  380. func (UnimplementedStartedServiceServer) GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error) {
  381. return nil, status.Error(codes.Unimplemented, "method GetSystemProxyStatus not implemented")
  382. }
  383. func (UnimplementedStartedServiceServer) SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error) {
  384. return nil, status.Error(codes.Unimplemented, "method SetSystemProxyEnabled not implemented")
  385. }
  386. func (UnimplementedStartedServiceServer) SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[ConnectionEvents]) error {
  387. return status.Error(codes.Unimplemented, "method SubscribeConnections not implemented")
  388. }
  389. func (UnimplementedStartedServiceServer) CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error) {
  390. return nil, status.Error(codes.Unimplemented, "method CloseConnection not implemented")
  391. }
  392. func (UnimplementedStartedServiceServer) CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  393. return nil, status.Error(codes.Unimplemented, "method CloseAllConnections not implemented")
  394. }
  395. func (UnimplementedStartedServiceServer) GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error) {
  396. return nil, status.Error(codes.Unimplemented, "method GetDeprecatedWarnings not implemented")
  397. }
  398. func (UnimplementedStartedServiceServer) GetStartedAt(context.Context, *emptypb.Empty) (*StartedAt, error) {
  399. return nil, status.Error(codes.Unimplemented, "method GetStartedAt not implemented")
  400. }
  401. func (UnimplementedStartedServiceServer) mustEmbedUnimplementedStartedServiceServer() {}
  402. func (UnimplementedStartedServiceServer) testEmbeddedByValue() {}
  403. // UnsafeStartedServiceServer may be embedded to opt out of forward compatibility for this service.
  404. // Use of this interface is not recommended, as added methods to StartedServiceServer will
  405. // result in compilation errors.
  406. type UnsafeStartedServiceServer interface {
  407. mustEmbedUnimplementedStartedServiceServer()
  408. }
  409. func RegisterStartedServiceServer(s grpc.ServiceRegistrar, srv StartedServiceServer) {
  410. // If the following call panics, it indicates UnimplementedStartedServiceServer was
  411. // embedded by pointer and is nil. This will cause panics if an
  412. // unimplemented method is ever invoked, so we test this at initialization
  413. // time to prevent it from happening at runtime later due to I/O.
  414. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
  415. t.testEmbeddedByValue()
  416. }
  417. s.RegisterService(&StartedService_ServiceDesc, srv)
  418. }
  419. func _StartedService_StopService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  420. in := new(emptypb.Empty)
  421. if err := dec(in); err != nil {
  422. return nil, err
  423. }
  424. if interceptor == nil {
  425. return srv.(StartedServiceServer).StopService(ctx, in)
  426. }
  427. info := &grpc.UnaryServerInfo{
  428. Server: srv,
  429. FullMethod: StartedService_StopService_FullMethodName,
  430. }
  431. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  432. return srv.(StartedServiceServer).StopService(ctx, req.(*emptypb.Empty))
  433. }
  434. return interceptor(ctx, in, info, handler)
  435. }
  436. func _StartedService_ReloadService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  437. in := new(emptypb.Empty)
  438. if err := dec(in); err != nil {
  439. return nil, err
  440. }
  441. if interceptor == nil {
  442. return srv.(StartedServiceServer).ReloadService(ctx, in)
  443. }
  444. info := &grpc.UnaryServerInfo{
  445. Server: srv,
  446. FullMethod: StartedService_ReloadService_FullMethodName,
  447. }
  448. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  449. return srv.(StartedServiceServer).ReloadService(ctx, req.(*emptypb.Empty))
  450. }
  451. return interceptor(ctx, in, info, handler)
  452. }
  453. func _StartedService_SubscribeServiceStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
  454. m := new(emptypb.Empty)
  455. if err := stream.RecvMsg(m); err != nil {
  456. return err
  457. }
  458. return srv.(StartedServiceServer).SubscribeServiceStatus(m, &grpc.GenericServerStream[emptypb.Empty, ServiceStatus]{ServerStream: stream})
  459. }
  460. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  461. type StartedService_SubscribeServiceStatusServer = grpc.ServerStreamingServer[ServiceStatus]
  462. func _StartedService_SubscribeLog_Handler(srv interface{}, stream grpc.ServerStream) error {
  463. m := new(emptypb.Empty)
  464. if err := stream.RecvMsg(m); err != nil {
  465. return err
  466. }
  467. return srv.(StartedServiceServer).SubscribeLog(m, &grpc.GenericServerStream[emptypb.Empty, Log]{ServerStream: stream})
  468. }
  469. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  470. type StartedService_SubscribeLogServer = grpc.ServerStreamingServer[Log]
  471. func _StartedService_GetDefaultLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  472. in := new(emptypb.Empty)
  473. if err := dec(in); err != nil {
  474. return nil, err
  475. }
  476. if interceptor == nil {
  477. return srv.(StartedServiceServer).GetDefaultLogLevel(ctx, in)
  478. }
  479. info := &grpc.UnaryServerInfo{
  480. Server: srv,
  481. FullMethod: StartedService_GetDefaultLogLevel_FullMethodName,
  482. }
  483. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  484. return srv.(StartedServiceServer).GetDefaultLogLevel(ctx, req.(*emptypb.Empty))
  485. }
  486. return interceptor(ctx, in, info, handler)
  487. }
  488. func _StartedService_ClearLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  489. in := new(emptypb.Empty)
  490. if err := dec(in); err != nil {
  491. return nil, err
  492. }
  493. if interceptor == nil {
  494. return srv.(StartedServiceServer).ClearLogs(ctx, in)
  495. }
  496. info := &grpc.UnaryServerInfo{
  497. Server: srv,
  498. FullMethod: StartedService_ClearLogs_FullMethodName,
  499. }
  500. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  501. return srv.(StartedServiceServer).ClearLogs(ctx, req.(*emptypb.Empty))
  502. }
  503. return interceptor(ctx, in, info, handler)
  504. }
  505. func _StartedService_SubscribeStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
  506. m := new(SubscribeStatusRequest)
  507. if err := stream.RecvMsg(m); err != nil {
  508. return err
  509. }
  510. return srv.(StartedServiceServer).SubscribeStatus(m, &grpc.GenericServerStream[SubscribeStatusRequest, Status]{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_SubscribeStatusServer = grpc.ServerStreamingServer[Status]
  514. func _StartedService_SubscribeGroups_Handler(srv interface{}, stream grpc.ServerStream) error {
  515. m := new(emptypb.Empty)
  516. if err := stream.RecvMsg(m); err != nil {
  517. return err
  518. }
  519. return srv.(StartedServiceServer).SubscribeGroups(m, &grpc.GenericServerStream[emptypb.Empty, Groups]{ServerStream: stream})
  520. }
  521. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  522. type StartedService_SubscribeGroupsServer = grpc.ServerStreamingServer[Groups]
  523. func _StartedService_GetClashModeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  524. in := new(emptypb.Empty)
  525. if err := dec(in); err != nil {
  526. return nil, err
  527. }
  528. if interceptor == nil {
  529. return srv.(StartedServiceServer).GetClashModeStatus(ctx, in)
  530. }
  531. info := &grpc.UnaryServerInfo{
  532. Server: srv,
  533. FullMethod: StartedService_GetClashModeStatus_FullMethodName,
  534. }
  535. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  536. return srv.(StartedServiceServer).GetClashModeStatus(ctx, req.(*emptypb.Empty))
  537. }
  538. return interceptor(ctx, in, info, handler)
  539. }
  540. func _StartedService_SubscribeClashMode_Handler(srv interface{}, stream grpc.ServerStream) error {
  541. m := new(emptypb.Empty)
  542. if err := stream.RecvMsg(m); err != nil {
  543. return err
  544. }
  545. return srv.(StartedServiceServer).SubscribeClashMode(m, &grpc.GenericServerStream[emptypb.Empty, ClashMode]{ServerStream: stream})
  546. }
  547. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  548. type StartedService_SubscribeClashModeServer = grpc.ServerStreamingServer[ClashMode]
  549. func _StartedService_SetClashMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  550. in := new(ClashMode)
  551. if err := dec(in); err != nil {
  552. return nil, err
  553. }
  554. if interceptor == nil {
  555. return srv.(StartedServiceServer).SetClashMode(ctx, in)
  556. }
  557. info := &grpc.UnaryServerInfo{
  558. Server: srv,
  559. FullMethod: StartedService_SetClashMode_FullMethodName,
  560. }
  561. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  562. return srv.(StartedServiceServer).SetClashMode(ctx, req.(*ClashMode))
  563. }
  564. return interceptor(ctx, in, info, handler)
  565. }
  566. func _StartedService_URLTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  567. in := new(URLTestRequest)
  568. if err := dec(in); err != nil {
  569. return nil, err
  570. }
  571. if interceptor == nil {
  572. return srv.(StartedServiceServer).URLTest(ctx, in)
  573. }
  574. info := &grpc.UnaryServerInfo{
  575. Server: srv,
  576. FullMethod: StartedService_URLTest_FullMethodName,
  577. }
  578. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  579. return srv.(StartedServiceServer).URLTest(ctx, req.(*URLTestRequest))
  580. }
  581. return interceptor(ctx, in, info, handler)
  582. }
  583. func _StartedService_SelectOutbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  584. in := new(SelectOutboundRequest)
  585. if err := dec(in); err != nil {
  586. return nil, err
  587. }
  588. if interceptor == nil {
  589. return srv.(StartedServiceServer).SelectOutbound(ctx, in)
  590. }
  591. info := &grpc.UnaryServerInfo{
  592. Server: srv,
  593. FullMethod: StartedService_SelectOutbound_FullMethodName,
  594. }
  595. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  596. return srv.(StartedServiceServer).SelectOutbound(ctx, req.(*SelectOutboundRequest))
  597. }
  598. return interceptor(ctx, in, info, handler)
  599. }
  600. func _StartedService_SetGroupExpand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  601. in := new(SetGroupExpandRequest)
  602. if err := dec(in); err != nil {
  603. return nil, err
  604. }
  605. if interceptor == nil {
  606. return srv.(StartedServiceServer).SetGroupExpand(ctx, in)
  607. }
  608. info := &grpc.UnaryServerInfo{
  609. Server: srv,
  610. FullMethod: StartedService_SetGroupExpand_FullMethodName,
  611. }
  612. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  613. return srv.(StartedServiceServer).SetGroupExpand(ctx, req.(*SetGroupExpandRequest))
  614. }
  615. return interceptor(ctx, in, info, handler)
  616. }
  617. func _StartedService_GetSystemProxyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  618. in := new(emptypb.Empty)
  619. if err := dec(in); err != nil {
  620. return nil, err
  621. }
  622. if interceptor == nil {
  623. return srv.(StartedServiceServer).GetSystemProxyStatus(ctx, in)
  624. }
  625. info := &grpc.UnaryServerInfo{
  626. Server: srv,
  627. FullMethod: StartedService_GetSystemProxyStatus_FullMethodName,
  628. }
  629. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  630. return srv.(StartedServiceServer).GetSystemProxyStatus(ctx, req.(*emptypb.Empty))
  631. }
  632. return interceptor(ctx, in, info, handler)
  633. }
  634. func _StartedService_SetSystemProxyEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  635. in := new(SetSystemProxyEnabledRequest)
  636. if err := dec(in); err != nil {
  637. return nil, err
  638. }
  639. if interceptor == nil {
  640. return srv.(StartedServiceServer).SetSystemProxyEnabled(ctx, in)
  641. }
  642. info := &grpc.UnaryServerInfo{
  643. Server: srv,
  644. FullMethod: StartedService_SetSystemProxyEnabled_FullMethodName,
  645. }
  646. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  647. return srv.(StartedServiceServer).SetSystemProxyEnabled(ctx, req.(*SetSystemProxyEnabledRequest))
  648. }
  649. return interceptor(ctx, in, info, handler)
  650. }
  651. func _StartedService_SubscribeConnections_Handler(srv interface{}, stream grpc.ServerStream) error {
  652. m := new(SubscribeConnectionsRequest)
  653. if err := stream.RecvMsg(m); err != nil {
  654. return err
  655. }
  656. return srv.(StartedServiceServer).SubscribeConnections(m, &grpc.GenericServerStream[SubscribeConnectionsRequest, ConnectionEvents]{ServerStream: stream})
  657. }
  658. // This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
  659. type StartedService_SubscribeConnectionsServer = grpc.ServerStreamingServer[ConnectionEvents]
  660. func _StartedService_CloseConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  661. in := new(CloseConnectionRequest)
  662. if err := dec(in); err != nil {
  663. return nil, err
  664. }
  665. if interceptor == nil {
  666. return srv.(StartedServiceServer).CloseConnection(ctx, in)
  667. }
  668. info := &grpc.UnaryServerInfo{
  669. Server: srv,
  670. FullMethod: StartedService_CloseConnection_FullMethodName,
  671. }
  672. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  673. return srv.(StartedServiceServer).CloseConnection(ctx, req.(*CloseConnectionRequest))
  674. }
  675. return interceptor(ctx, in, info, handler)
  676. }
  677. func _StartedService_CloseAllConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  678. in := new(emptypb.Empty)
  679. if err := dec(in); err != nil {
  680. return nil, err
  681. }
  682. if interceptor == nil {
  683. return srv.(StartedServiceServer).CloseAllConnections(ctx, in)
  684. }
  685. info := &grpc.UnaryServerInfo{
  686. Server: srv,
  687. FullMethod: StartedService_CloseAllConnections_FullMethodName,
  688. }
  689. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  690. return srv.(StartedServiceServer).CloseAllConnections(ctx, req.(*emptypb.Empty))
  691. }
  692. return interceptor(ctx, in, info, handler)
  693. }
  694. func _StartedService_GetDeprecatedWarnings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  695. in := new(emptypb.Empty)
  696. if err := dec(in); err != nil {
  697. return nil, err
  698. }
  699. if interceptor == nil {
  700. return srv.(StartedServiceServer).GetDeprecatedWarnings(ctx, in)
  701. }
  702. info := &grpc.UnaryServerInfo{
  703. Server: srv,
  704. FullMethod: StartedService_GetDeprecatedWarnings_FullMethodName,
  705. }
  706. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  707. return srv.(StartedServiceServer).GetDeprecatedWarnings(ctx, req.(*emptypb.Empty))
  708. }
  709. return interceptor(ctx, in, info, handler)
  710. }
  711. func _StartedService_GetStartedAt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  712. in := new(emptypb.Empty)
  713. if err := dec(in); err != nil {
  714. return nil, err
  715. }
  716. if interceptor == nil {
  717. return srv.(StartedServiceServer).GetStartedAt(ctx, in)
  718. }
  719. info := &grpc.UnaryServerInfo{
  720. Server: srv,
  721. FullMethod: StartedService_GetStartedAt_FullMethodName,
  722. }
  723. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  724. return srv.(StartedServiceServer).GetStartedAt(ctx, req.(*emptypb.Empty))
  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: "ClearLogs",
  749. Handler: _StartedService_ClearLogs_Handler,
  750. },
  751. {
  752. MethodName: "GetClashModeStatus",
  753. Handler: _StartedService_GetClashModeStatus_Handler,
  754. },
  755. {
  756. MethodName: "SetClashMode",
  757. Handler: _StartedService_SetClashMode_Handler,
  758. },
  759. {
  760. MethodName: "URLTest",
  761. Handler: _StartedService_URLTest_Handler,
  762. },
  763. {
  764. MethodName: "SelectOutbound",
  765. Handler: _StartedService_SelectOutbound_Handler,
  766. },
  767. {
  768. MethodName: "SetGroupExpand",
  769. Handler: _StartedService_SetGroupExpand_Handler,
  770. },
  771. {
  772. MethodName: "GetSystemProxyStatus",
  773. Handler: _StartedService_GetSystemProxyStatus_Handler,
  774. },
  775. {
  776. MethodName: "SetSystemProxyEnabled",
  777. Handler: _StartedService_SetSystemProxyEnabled_Handler,
  778. },
  779. {
  780. MethodName: "CloseConnection",
  781. Handler: _StartedService_CloseConnection_Handler,
  782. },
  783. {
  784. MethodName: "CloseAllConnections",
  785. Handler: _StartedService_CloseAllConnections_Handler,
  786. },
  787. {
  788. MethodName: "GetDeprecatedWarnings",
  789. Handler: _StartedService_GetDeprecatedWarnings_Handler,
  790. },
  791. {
  792. MethodName: "GetStartedAt",
  793. Handler: _StartedService_GetStartedAt_Handler,
  794. },
  795. },
  796. Streams: []grpc.StreamDesc{
  797. {
  798. StreamName: "SubscribeServiceStatus",
  799. Handler: _StartedService_SubscribeServiceStatus_Handler,
  800. ServerStreams: true,
  801. },
  802. {
  803. StreamName: "SubscribeLog",
  804. Handler: _StartedService_SubscribeLog_Handler,
  805. ServerStreams: true,
  806. },
  807. {
  808. StreamName: "SubscribeStatus",
  809. Handler: _StartedService_SubscribeStatus_Handler,
  810. ServerStreams: true,
  811. },
  812. {
  813. StreamName: "SubscribeGroups",
  814. Handler: _StartedService_SubscribeGroups_Handler,
  815. ServerStreams: true,
  816. },
  817. {
  818. StreamName: "SubscribeClashMode",
  819. Handler: _StartedService_SubscribeClashMode_Handler,
  820. ServerStreams: true,
  821. },
  822. {
  823. StreamName: "SubscribeConnections",
  824. Handler: _StartedService_SubscribeConnections_Handler,
  825. ServerStreams: true,
  826. },
  827. },
  828. Metadata: "daemon/started_service.proto",
  829. }