You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

497 lines
20 KiB

3 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
3 years ago
2 years ago
2 years ago
1 year ago
2 years ago
3 years ago
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v4.23.3
  5. // source: mq.proto
  6. package mq_pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // SeaweedMessagingClient is the client API for SeaweedMessaging service.
  18. //
  19. // 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.
  20. type SeaweedMessagingClient interface {
  21. // control plane
  22. FindBrokerLeader(ctx context.Context, in *FindBrokerLeaderRequest, opts ...grpc.CallOption) (*FindBrokerLeaderResponse, error)
  23. AssignSegmentBrokers(ctx context.Context, in *AssignSegmentBrokersRequest, opts ...grpc.CallOption) (*AssignSegmentBrokersResponse, error)
  24. CheckSegmentStatus(ctx context.Context, in *CheckSegmentStatusRequest, opts ...grpc.CallOption) (*CheckSegmentStatusResponse, error)
  25. CheckBrokerLoad(ctx context.Context, in *CheckBrokerLoadRequest, opts ...grpc.CallOption) (*CheckBrokerLoadResponse, error)
  26. // control plane for topic partitions
  27. LookupTopicBrokers(ctx context.Context, in *LookupTopicBrokersRequest, opts ...grpc.CallOption) (*LookupTopicBrokersResponse, error)
  28. // a pub client will call this to get the topic partitions assignment
  29. RequestTopicPartitions(ctx context.Context, in *RequestTopicPartitionsRequest, opts ...grpc.CallOption) (*RequestTopicPartitionsResponse, error)
  30. AssignTopicPartitions(ctx context.Context, in *AssignTopicPartitionsRequest, opts ...grpc.CallOption) (*AssignTopicPartitionsResponse, error)
  31. CheckTopicPartitionsStatus(ctx context.Context, in *CheckTopicPartitionsStatusRequest, opts ...grpc.CallOption) (*CheckTopicPartitionsStatusResponse, error)
  32. // data plane
  33. Publish(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_PublishClient, error)
  34. Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeClient, error)
  35. }
  36. type seaweedMessagingClient struct {
  37. cc grpc.ClientConnInterface
  38. }
  39. func NewSeaweedMessagingClient(cc grpc.ClientConnInterface) SeaweedMessagingClient {
  40. return &seaweedMessagingClient{cc}
  41. }
  42. func (c *seaweedMessagingClient) FindBrokerLeader(ctx context.Context, in *FindBrokerLeaderRequest, opts ...grpc.CallOption) (*FindBrokerLeaderResponse, error) {
  43. out := new(FindBrokerLeaderResponse)
  44. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/FindBrokerLeader", in, out, opts...)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return out, nil
  49. }
  50. func (c *seaweedMessagingClient) AssignSegmentBrokers(ctx context.Context, in *AssignSegmentBrokersRequest, opts ...grpc.CallOption) (*AssignSegmentBrokersResponse, error) {
  51. out := new(AssignSegmentBrokersResponse)
  52. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/AssignSegmentBrokers", in, out, opts...)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return out, nil
  57. }
  58. func (c *seaweedMessagingClient) CheckSegmentStatus(ctx context.Context, in *CheckSegmentStatusRequest, opts ...grpc.CallOption) (*CheckSegmentStatusResponse, error) {
  59. out := new(CheckSegmentStatusResponse)
  60. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/CheckSegmentStatus", in, out, opts...)
  61. if err != nil {
  62. return nil, err
  63. }
  64. return out, nil
  65. }
  66. func (c *seaweedMessagingClient) CheckBrokerLoad(ctx context.Context, in *CheckBrokerLoadRequest, opts ...grpc.CallOption) (*CheckBrokerLoadResponse, error) {
  67. out := new(CheckBrokerLoadResponse)
  68. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/CheckBrokerLoad", in, out, opts...)
  69. if err != nil {
  70. return nil, err
  71. }
  72. return out, nil
  73. }
  74. func (c *seaweedMessagingClient) LookupTopicBrokers(ctx context.Context, in *LookupTopicBrokersRequest, opts ...grpc.CallOption) (*LookupTopicBrokersResponse, error) {
  75. out := new(LookupTopicBrokersResponse)
  76. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/LookupTopicBrokers", in, out, opts...)
  77. if err != nil {
  78. return nil, err
  79. }
  80. return out, nil
  81. }
  82. func (c *seaweedMessagingClient) RequestTopicPartitions(ctx context.Context, in *RequestTopicPartitionsRequest, opts ...grpc.CallOption) (*RequestTopicPartitionsResponse, error) {
  83. out := new(RequestTopicPartitionsResponse)
  84. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/RequestTopicPartitions", in, out, opts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *seaweedMessagingClient) AssignTopicPartitions(ctx context.Context, in *AssignTopicPartitionsRequest, opts ...grpc.CallOption) (*AssignTopicPartitionsResponse, error) {
  91. out := new(AssignTopicPartitionsResponse)
  92. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/AssignTopicPartitions", in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. func (c *seaweedMessagingClient) CheckTopicPartitionsStatus(ctx context.Context, in *CheckTopicPartitionsStatusRequest, opts ...grpc.CallOption) (*CheckTopicPartitionsStatusResponse, error) {
  99. out := new(CheckTopicPartitionsStatusResponse)
  100. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedMessaging/CheckTopicPartitionsStatus", in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *seaweedMessagingClient) Publish(ctx context.Context, opts ...grpc.CallOption) (SeaweedMessaging_PublishClient, error) {
  107. stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[0], "/messaging_pb.SeaweedMessaging/Publish", opts...)
  108. if err != nil {
  109. return nil, err
  110. }
  111. x := &seaweedMessagingPublishClient{stream}
  112. return x, nil
  113. }
  114. type SeaweedMessaging_PublishClient interface {
  115. Send(*PublishRequest) error
  116. Recv() (*PublishResponse, error)
  117. grpc.ClientStream
  118. }
  119. type seaweedMessagingPublishClient struct {
  120. grpc.ClientStream
  121. }
  122. func (x *seaweedMessagingPublishClient) Send(m *PublishRequest) error {
  123. return x.ClientStream.SendMsg(m)
  124. }
  125. func (x *seaweedMessagingPublishClient) Recv() (*PublishResponse, error) {
  126. m := new(PublishResponse)
  127. if err := x.ClientStream.RecvMsg(m); err != nil {
  128. return nil, err
  129. }
  130. return m, nil
  131. }
  132. func (c *seaweedMessagingClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeClient, error) {
  133. stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[1], "/messaging_pb.SeaweedMessaging/Subscribe", opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. x := &seaweedMessagingSubscribeClient{stream}
  138. if err := x.ClientStream.SendMsg(in); err != nil {
  139. return nil, err
  140. }
  141. if err := x.ClientStream.CloseSend(); err != nil {
  142. return nil, err
  143. }
  144. return x, nil
  145. }
  146. type SeaweedMessaging_SubscribeClient interface {
  147. Recv() (*SubscribeResponse, error)
  148. grpc.ClientStream
  149. }
  150. type seaweedMessagingSubscribeClient struct {
  151. grpc.ClientStream
  152. }
  153. func (x *seaweedMessagingSubscribeClient) Recv() (*SubscribeResponse, error) {
  154. m := new(SubscribeResponse)
  155. if err := x.ClientStream.RecvMsg(m); err != nil {
  156. return nil, err
  157. }
  158. return m, nil
  159. }
  160. // SeaweedMessagingServer is the server API for SeaweedMessaging service.
  161. // All implementations must embed UnimplementedSeaweedMessagingServer
  162. // for forward compatibility
  163. type SeaweedMessagingServer interface {
  164. // control plane
  165. FindBrokerLeader(context.Context, *FindBrokerLeaderRequest) (*FindBrokerLeaderResponse, error)
  166. AssignSegmentBrokers(context.Context, *AssignSegmentBrokersRequest) (*AssignSegmentBrokersResponse, error)
  167. CheckSegmentStatus(context.Context, *CheckSegmentStatusRequest) (*CheckSegmentStatusResponse, error)
  168. CheckBrokerLoad(context.Context, *CheckBrokerLoadRequest) (*CheckBrokerLoadResponse, error)
  169. // control plane for topic partitions
  170. LookupTopicBrokers(context.Context, *LookupTopicBrokersRequest) (*LookupTopicBrokersResponse, error)
  171. // a pub client will call this to get the topic partitions assignment
  172. RequestTopicPartitions(context.Context, *RequestTopicPartitionsRequest) (*RequestTopicPartitionsResponse, error)
  173. AssignTopicPartitions(context.Context, *AssignTopicPartitionsRequest) (*AssignTopicPartitionsResponse, error)
  174. CheckTopicPartitionsStatus(context.Context, *CheckTopicPartitionsStatusRequest) (*CheckTopicPartitionsStatusResponse, error)
  175. // data plane
  176. Publish(SeaweedMessaging_PublishServer) error
  177. Subscribe(*SubscribeRequest, SeaweedMessaging_SubscribeServer) error
  178. mustEmbedUnimplementedSeaweedMessagingServer()
  179. }
  180. // UnimplementedSeaweedMessagingServer must be embedded to have forward compatible implementations.
  181. type UnimplementedSeaweedMessagingServer struct {
  182. }
  183. func (UnimplementedSeaweedMessagingServer) FindBrokerLeader(context.Context, *FindBrokerLeaderRequest) (*FindBrokerLeaderResponse, error) {
  184. return nil, status.Errorf(codes.Unimplemented, "method FindBrokerLeader not implemented")
  185. }
  186. func (UnimplementedSeaweedMessagingServer) AssignSegmentBrokers(context.Context, *AssignSegmentBrokersRequest) (*AssignSegmentBrokersResponse, error) {
  187. return nil, status.Errorf(codes.Unimplemented, "method AssignSegmentBrokers not implemented")
  188. }
  189. func (UnimplementedSeaweedMessagingServer) CheckSegmentStatus(context.Context, *CheckSegmentStatusRequest) (*CheckSegmentStatusResponse, error) {
  190. return nil, status.Errorf(codes.Unimplemented, "method CheckSegmentStatus not implemented")
  191. }
  192. func (UnimplementedSeaweedMessagingServer) CheckBrokerLoad(context.Context, *CheckBrokerLoadRequest) (*CheckBrokerLoadResponse, error) {
  193. return nil, status.Errorf(codes.Unimplemented, "method CheckBrokerLoad not implemented")
  194. }
  195. func (UnimplementedSeaweedMessagingServer) LookupTopicBrokers(context.Context, *LookupTopicBrokersRequest) (*LookupTopicBrokersResponse, error) {
  196. return nil, status.Errorf(codes.Unimplemented, "method LookupTopicBrokers not implemented")
  197. }
  198. func (UnimplementedSeaweedMessagingServer) RequestTopicPartitions(context.Context, *RequestTopicPartitionsRequest) (*RequestTopicPartitionsResponse, error) {
  199. return nil, status.Errorf(codes.Unimplemented, "method RequestTopicPartitions not implemented")
  200. }
  201. func (UnimplementedSeaweedMessagingServer) AssignTopicPartitions(context.Context, *AssignTopicPartitionsRequest) (*AssignTopicPartitionsResponse, error) {
  202. return nil, status.Errorf(codes.Unimplemented, "method AssignTopicPartitions not implemented")
  203. }
  204. func (UnimplementedSeaweedMessagingServer) CheckTopicPartitionsStatus(context.Context, *CheckTopicPartitionsStatusRequest) (*CheckTopicPartitionsStatusResponse, error) {
  205. return nil, status.Errorf(codes.Unimplemented, "method CheckTopicPartitionsStatus not implemented")
  206. }
  207. func (UnimplementedSeaweedMessagingServer) Publish(SeaweedMessaging_PublishServer) error {
  208. return status.Errorf(codes.Unimplemented, "method Publish not implemented")
  209. }
  210. func (UnimplementedSeaweedMessagingServer) Subscribe(*SubscribeRequest, SeaweedMessaging_SubscribeServer) error {
  211. return status.Errorf(codes.Unimplemented, "method Subscribe not implemented")
  212. }
  213. func (UnimplementedSeaweedMessagingServer) mustEmbedUnimplementedSeaweedMessagingServer() {}
  214. // UnsafeSeaweedMessagingServer may be embedded to opt out of forward compatibility for this service.
  215. // Use of this interface is not recommended, as added methods to SeaweedMessagingServer will
  216. // result in compilation errors.
  217. type UnsafeSeaweedMessagingServer interface {
  218. mustEmbedUnimplementedSeaweedMessagingServer()
  219. }
  220. func RegisterSeaweedMessagingServer(s grpc.ServiceRegistrar, srv SeaweedMessagingServer) {
  221. s.RegisterService(&SeaweedMessaging_ServiceDesc, srv)
  222. }
  223. func _SeaweedMessaging_FindBrokerLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  224. in := new(FindBrokerLeaderRequest)
  225. if err := dec(in); err != nil {
  226. return nil, err
  227. }
  228. if interceptor == nil {
  229. return srv.(SeaweedMessagingServer).FindBrokerLeader(ctx, in)
  230. }
  231. info := &grpc.UnaryServerInfo{
  232. Server: srv,
  233. FullMethod: "/messaging_pb.SeaweedMessaging/FindBrokerLeader",
  234. }
  235. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  236. return srv.(SeaweedMessagingServer).FindBrokerLeader(ctx, req.(*FindBrokerLeaderRequest))
  237. }
  238. return interceptor(ctx, in, info, handler)
  239. }
  240. func _SeaweedMessaging_AssignSegmentBrokers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  241. in := new(AssignSegmentBrokersRequest)
  242. if err := dec(in); err != nil {
  243. return nil, err
  244. }
  245. if interceptor == nil {
  246. return srv.(SeaweedMessagingServer).AssignSegmentBrokers(ctx, in)
  247. }
  248. info := &grpc.UnaryServerInfo{
  249. Server: srv,
  250. FullMethod: "/messaging_pb.SeaweedMessaging/AssignSegmentBrokers",
  251. }
  252. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  253. return srv.(SeaweedMessagingServer).AssignSegmentBrokers(ctx, req.(*AssignSegmentBrokersRequest))
  254. }
  255. return interceptor(ctx, in, info, handler)
  256. }
  257. func _SeaweedMessaging_CheckSegmentStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  258. in := new(CheckSegmentStatusRequest)
  259. if err := dec(in); err != nil {
  260. return nil, err
  261. }
  262. if interceptor == nil {
  263. return srv.(SeaweedMessagingServer).CheckSegmentStatus(ctx, in)
  264. }
  265. info := &grpc.UnaryServerInfo{
  266. Server: srv,
  267. FullMethod: "/messaging_pb.SeaweedMessaging/CheckSegmentStatus",
  268. }
  269. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  270. return srv.(SeaweedMessagingServer).CheckSegmentStatus(ctx, req.(*CheckSegmentStatusRequest))
  271. }
  272. return interceptor(ctx, in, info, handler)
  273. }
  274. func _SeaweedMessaging_CheckBrokerLoad_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  275. in := new(CheckBrokerLoadRequest)
  276. if err := dec(in); err != nil {
  277. return nil, err
  278. }
  279. if interceptor == nil {
  280. return srv.(SeaweedMessagingServer).CheckBrokerLoad(ctx, in)
  281. }
  282. info := &grpc.UnaryServerInfo{
  283. Server: srv,
  284. FullMethod: "/messaging_pb.SeaweedMessaging/CheckBrokerLoad",
  285. }
  286. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  287. return srv.(SeaweedMessagingServer).CheckBrokerLoad(ctx, req.(*CheckBrokerLoadRequest))
  288. }
  289. return interceptor(ctx, in, info, handler)
  290. }
  291. func _SeaweedMessaging_LookupTopicBrokers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  292. in := new(LookupTopicBrokersRequest)
  293. if err := dec(in); err != nil {
  294. return nil, err
  295. }
  296. if interceptor == nil {
  297. return srv.(SeaweedMessagingServer).LookupTopicBrokers(ctx, in)
  298. }
  299. info := &grpc.UnaryServerInfo{
  300. Server: srv,
  301. FullMethod: "/messaging_pb.SeaweedMessaging/LookupTopicBrokers",
  302. }
  303. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  304. return srv.(SeaweedMessagingServer).LookupTopicBrokers(ctx, req.(*LookupTopicBrokersRequest))
  305. }
  306. return interceptor(ctx, in, info, handler)
  307. }
  308. func _SeaweedMessaging_RequestTopicPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  309. in := new(RequestTopicPartitionsRequest)
  310. if err := dec(in); err != nil {
  311. return nil, err
  312. }
  313. if interceptor == nil {
  314. return srv.(SeaweedMessagingServer).RequestTopicPartitions(ctx, in)
  315. }
  316. info := &grpc.UnaryServerInfo{
  317. Server: srv,
  318. FullMethod: "/messaging_pb.SeaweedMessaging/RequestTopicPartitions",
  319. }
  320. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  321. return srv.(SeaweedMessagingServer).RequestTopicPartitions(ctx, req.(*RequestTopicPartitionsRequest))
  322. }
  323. return interceptor(ctx, in, info, handler)
  324. }
  325. func _SeaweedMessaging_AssignTopicPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  326. in := new(AssignTopicPartitionsRequest)
  327. if err := dec(in); err != nil {
  328. return nil, err
  329. }
  330. if interceptor == nil {
  331. return srv.(SeaweedMessagingServer).AssignTopicPartitions(ctx, in)
  332. }
  333. info := &grpc.UnaryServerInfo{
  334. Server: srv,
  335. FullMethod: "/messaging_pb.SeaweedMessaging/AssignTopicPartitions",
  336. }
  337. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  338. return srv.(SeaweedMessagingServer).AssignTopicPartitions(ctx, req.(*AssignTopicPartitionsRequest))
  339. }
  340. return interceptor(ctx, in, info, handler)
  341. }
  342. func _SeaweedMessaging_CheckTopicPartitionsStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  343. in := new(CheckTopicPartitionsStatusRequest)
  344. if err := dec(in); err != nil {
  345. return nil, err
  346. }
  347. if interceptor == nil {
  348. return srv.(SeaweedMessagingServer).CheckTopicPartitionsStatus(ctx, in)
  349. }
  350. info := &grpc.UnaryServerInfo{
  351. Server: srv,
  352. FullMethod: "/messaging_pb.SeaweedMessaging/CheckTopicPartitionsStatus",
  353. }
  354. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  355. return srv.(SeaweedMessagingServer).CheckTopicPartitionsStatus(ctx, req.(*CheckTopicPartitionsStatusRequest))
  356. }
  357. return interceptor(ctx, in, info, handler)
  358. }
  359. func _SeaweedMessaging_Publish_Handler(srv interface{}, stream grpc.ServerStream) error {
  360. return srv.(SeaweedMessagingServer).Publish(&seaweedMessagingPublishServer{stream})
  361. }
  362. type SeaweedMessaging_PublishServer interface {
  363. Send(*PublishResponse) error
  364. Recv() (*PublishRequest, error)
  365. grpc.ServerStream
  366. }
  367. type seaweedMessagingPublishServer struct {
  368. grpc.ServerStream
  369. }
  370. func (x *seaweedMessagingPublishServer) Send(m *PublishResponse) error {
  371. return x.ServerStream.SendMsg(m)
  372. }
  373. func (x *seaweedMessagingPublishServer) Recv() (*PublishRequest, error) {
  374. m := new(PublishRequest)
  375. if err := x.ServerStream.RecvMsg(m); err != nil {
  376. return nil, err
  377. }
  378. return m, nil
  379. }
  380. func _SeaweedMessaging_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
  381. m := new(SubscribeRequest)
  382. if err := stream.RecvMsg(m); err != nil {
  383. return err
  384. }
  385. return srv.(SeaweedMessagingServer).Subscribe(m, &seaweedMessagingSubscribeServer{stream})
  386. }
  387. type SeaweedMessaging_SubscribeServer interface {
  388. Send(*SubscribeResponse) error
  389. grpc.ServerStream
  390. }
  391. type seaweedMessagingSubscribeServer struct {
  392. grpc.ServerStream
  393. }
  394. func (x *seaweedMessagingSubscribeServer) Send(m *SubscribeResponse) error {
  395. return x.ServerStream.SendMsg(m)
  396. }
  397. // SeaweedMessaging_ServiceDesc is the grpc.ServiceDesc for SeaweedMessaging service.
  398. // It's only intended for direct use with grpc.RegisterService,
  399. // and not to be introspected or modified (even as a copy)
  400. var SeaweedMessaging_ServiceDesc = grpc.ServiceDesc{
  401. ServiceName: "messaging_pb.SeaweedMessaging",
  402. HandlerType: (*SeaweedMessagingServer)(nil),
  403. Methods: []grpc.MethodDesc{
  404. {
  405. MethodName: "FindBrokerLeader",
  406. Handler: _SeaweedMessaging_FindBrokerLeader_Handler,
  407. },
  408. {
  409. MethodName: "AssignSegmentBrokers",
  410. Handler: _SeaweedMessaging_AssignSegmentBrokers_Handler,
  411. },
  412. {
  413. MethodName: "CheckSegmentStatus",
  414. Handler: _SeaweedMessaging_CheckSegmentStatus_Handler,
  415. },
  416. {
  417. MethodName: "CheckBrokerLoad",
  418. Handler: _SeaweedMessaging_CheckBrokerLoad_Handler,
  419. },
  420. {
  421. MethodName: "LookupTopicBrokers",
  422. Handler: _SeaweedMessaging_LookupTopicBrokers_Handler,
  423. },
  424. {
  425. MethodName: "RequestTopicPartitions",
  426. Handler: _SeaweedMessaging_RequestTopicPartitions_Handler,
  427. },
  428. {
  429. MethodName: "AssignTopicPartitions",
  430. Handler: _SeaweedMessaging_AssignTopicPartitions_Handler,
  431. },
  432. {
  433. MethodName: "CheckTopicPartitionsStatus",
  434. Handler: _SeaweedMessaging_CheckTopicPartitionsStatus_Handler,
  435. },
  436. },
  437. Streams: []grpc.StreamDesc{
  438. {
  439. StreamName: "Publish",
  440. Handler: _SeaweedMessaging_Publish_Handler,
  441. ServerStreams: true,
  442. ClientStreams: true,
  443. },
  444. {
  445. StreamName: "Subscribe",
  446. Handler: _SeaweedMessaging_Subscribe_Handler,
  447. ServerStreams: true,
  448. },
  449. },
  450. Metadata: "mq.proto",
  451. }