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.

983 lines
37 KiB

1 year ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.3.0
  4. // - protoc v4.25.3
  5. // source: master.proto
  6. package master_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. const (
  18. Seaweed_SendHeartbeat_FullMethodName = "/master_pb.Seaweed/SendHeartbeat"
  19. Seaweed_KeepConnected_FullMethodName = "/master_pb.Seaweed/KeepConnected"
  20. Seaweed_LookupVolume_FullMethodName = "/master_pb.Seaweed/LookupVolume"
  21. Seaweed_Assign_FullMethodName = "/master_pb.Seaweed/Assign"
  22. Seaweed_StreamAssign_FullMethodName = "/master_pb.Seaweed/StreamAssign"
  23. Seaweed_Statistics_FullMethodName = "/master_pb.Seaweed/Statistics"
  24. Seaweed_CollectionList_FullMethodName = "/master_pb.Seaweed/CollectionList"
  25. Seaweed_CollectionDelete_FullMethodName = "/master_pb.Seaweed/CollectionDelete"
  26. Seaweed_VolumeList_FullMethodName = "/master_pb.Seaweed/VolumeList"
  27. Seaweed_LookupEcVolume_FullMethodName = "/master_pb.Seaweed/LookupEcVolume"
  28. Seaweed_VacuumVolume_FullMethodName = "/master_pb.Seaweed/VacuumVolume"
  29. Seaweed_DisableVacuum_FullMethodName = "/master_pb.Seaweed/DisableVacuum"
  30. Seaweed_EnableVacuum_FullMethodName = "/master_pb.Seaweed/EnableVacuum"
  31. Seaweed_VolumeMarkReadonly_FullMethodName = "/master_pb.Seaweed/VolumeMarkReadonly"
  32. Seaweed_GetMasterConfiguration_FullMethodName = "/master_pb.Seaweed/GetMasterConfiguration"
  33. Seaweed_ListClusterNodes_FullMethodName = "/master_pb.Seaweed/ListClusterNodes"
  34. Seaweed_LeaseAdminToken_FullMethodName = "/master_pb.Seaweed/LeaseAdminToken"
  35. Seaweed_ReleaseAdminToken_FullMethodName = "/master_pb.Seaweed/ReleaseAdminToken"
  36. Seaweed_Ping_FullMethodName = "/master_pb.Seaweed/Ping"
  37. Seaweed_RaftListClusterServers_FullMethodName = "/master_pb.Seaweed/RaftListClusterServers"
  38. Seaweed_RaftAddServer_FullMethodName = "/master_pb.Seaweed/RaftAddServer"
  39. Seaweed_RaftRemoveServer_FullMethodName = "/master_pb.Seaweed/RaftRemoveServer"
  40. )
  41. // SeaweedClient is the client API for Seaweed service.
  42. //
  43. // 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.
  44. type SeaweedClient interface {
  45. SendHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Seaweed_SendHeartbeatClient, error)
  46. KeepConnected(ctx context.Context, opts ...grpc.CallOption) (Seaweed_KeepConnectedClient, error)
  47. LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error)
  48. Assign(ctx context.Context, in *AssignRequest, opts ...grpc.CallOption) (*AssignResponse, error)
  49. StreamAssign(ctx context.Context, opts ...grpc.CallOption) (Seaweed_StreamAssignClient, error)
  50. Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
  51. CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error)
  52. CollectionDelete(ctx context.Context, in *CollectionDeleteRequest, opts ...grpc.CallOption) (*CollectionDeleteResponse, error)
  53. VolumeList(ctx context.Context, in *VolumeListRequest, opts ...grpc.CallOption) (*VolumeListResponse, error)
  54. LookupEcVolume(ctx context.Context, in *LookupEcVolumeRequest, opts ...grpc.CallOption) (*LookupEcVolumeResponse, error)
  55. VacuumVolume(ctx context.Context, in *VacuumVolumeRequest, opts ...grpc.CallOption) (*VacuumVolumeResponse, error)
  56. DisableVacuum(ctx context.Context, in *DisableVacuumRequest, opts ...grpc.CallOption) (*DisableVacuumResponse, error)
  57. EnableVacuum(ctx context.Context, in *EnableVacuumRequest, opts ...grpc.CallOption) (*EnableVacuumResponse, error)
  58. VolumeMarkReadonly(ctx context.Context, in *VolumeMarkReadonlyRequest, opts ...grpc.CallOption) (*VolumeMarkReadonlyResponse, error)
  59. GetMasterConfiguration(ctx context.Context, in *GetMasterConfigurationRequest, opts ...grpc.CallOption) (*GetMasterConfigurationResponse, error)
  60. ListClusterNodes(ctx context.Context, in *ListClusterNodesRequest, opts ...grpc.CallOption) (*ListClusterNodesResponse, error)
  61. LeaseAdminToken(ctx context.Context, in *LeaseAdminTokenRequest, opts ...grpc.CallOption) (*LeaseAdminTokenResponse, error)
  62. ReleaseAdminToken(ctx context.Context, in *ReleaseAdminTokenRequest, opts ...grpc.CallOption) (*ReleaseAdminTokenResponse, error)
  63. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
  64. RaftListClusterServers(ctx context.Context, in *RaftListClusterServersRequest, opts ...grpc.CallOption) (*RaftListClusterServersResponse, error)
  65. RaftAddServer(ctx context.Context, in *RaftAddServerRequest, opts ...grpc.CallOption) (*RaftAddServerResponse, error)
  66. RaftRemoveServer(ctx context.Context, in *RaftRemoveServerRequest, opts ...grpc.CallOption) (*RaftRemoveServerResponse, error)
  67. }
  68. type seaweedClient struct {
  69. cc grpc.ClientConnInterface
  70. }
  71. func NewSeaweedClient(cc grpc.ClientConnInterface) SeaweedClient {
  72. return &seaweedClient{cc}
  73. }
  74. func (c *seaweedClient) SendHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Seaweed_SendHeartbeatClient, error) {
  75. stream, err := c.cc.NewStream(ctx, &Seaweed_ServiceDesc.Streams[0], Seaweed_SendHeartbeat_FullMethodName, opts...)
  76. if err != nil {
  77. return nil, err
  78. }
  79. x := &seaweedSendHeartbeatClient{stream}
  80. return x, nil
  81. }
  82. type Seaweed_SendHeartbeatClient interface {
  83. Send(*Heartbeat) error
  84. Recv() (*HeartbeatResponse, error)
  85. grpc.ClientStream
  86. }
  87. type seaweedSendHeartbeatClient struct {
  88. grpc.ClientStream
  89. }
  90. func (x *seaweedSendHeartbeatClient) Send(m *Heartbeat) error {
  91. return x.ClientStream.SendMsg(m)
  92. }
  93. func (x *seaweedSendHeartbeatClient) Recv() (*HeartbeatResponse, error) {
  94. m := new(HeartbeatResponse)
  95. if err := x.ClientStream.RecvMsg(m); err != nil {
  96. return nil, err
  97. }
  98. return m, nil
  99. }
  100. func (c *seaweedClient) KeepConnected(ctx context.Context, opts ...grpc.CallOption) (Seaweed_KeepConnectedClient, error) {
  101. stream, err := c.cc.NewStream(ctx, &Seaweed_ServiceDesc.Streams[1], Seaweed_KeepConnected_FullMethodName, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. x := &seaweedKeepConnectedClient{stream}
  106. return x, nil
  107. }
  108. type Seaweed_KeepConnectedClient interface {
  109. Send(*KeepConnectedRequest) error
  110. Recv() (*KeepConnectedResponse, error)
  111. grpc.ClientStream
  112. }
  113. type seaweedKeepConnectedClient struct {
  114. grpc.ClientStream
  115. }
  116. func (x *seaweedKeepConnectedClient) Send(m *KeepConnectedRequest) error {
  117. return x.ClientStream.SendMsg(m)
  118. }
  119. func (x *seaweedKeepConnectedClient) Recv() (*KeepConnectedResponse, error) {
  120. m := new(KeepConnectedResponse)
  121. if err := x.ClientStream.RecvMsg(m); err != nil {
  122. return nil, err
  123. }
  124. return m, nil
  125. }
  126. func (c *seaweedClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) {
  127. out := new(LookupVolumeResponse)
  128. err := c.cc.Invoke(ctx, Seaweed_LookupVolume_FullMethodName, in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *seaweedClient) Assign(ctx context.Context, in *AssignRequest, opts ...grpc.CallOption) (*AssignResponse, error) {
  135. out := new(AssignResponse)
  136. err := c.cc.Invoke(ctx, Seaweed_Assign_FullMethodName, in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *seaweedClient) StreamAssign(ctx context.Context, opts ...grpc.CallOption) (Seaweed_StreamAssignClient, error) {
  143. stream, err := c.cc.NewStream(ctx, &Seaweed_ServiceDesc.Streams[2], Seaweed_StreamAssign_FullMethodName, opts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. x := &seaweedStreamAssignClient{stream}
  148. return x, nil
  149. }
  150. type Seaweed_StreamAssignClient interface {
  151. Send(*AssignRequest) error
  152. Recv() (*AssignResponse, error)
  153. grpc.ClientStream
  154. }
  155. type seaweedStreamAssignClient struct {
  156. grpc.ClientStream
  157. }
  158. func (x *seaweedStreamAssignClient) Send(m *AssignRequest) error {
  159. return x.ClientStream.SendMsg(m)
  160. }
  161. func (x *seaweedStreamAssignClient) Recv() (*AssignResponse, error) {
  162. m := new(AssignResponse)
  163. if err := x.ClientStream.RecvMsg(m); err != nil {
  164. return nil, err
  165. }
  166. return m, nil
  167. }
  168. func (c *seaweedClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) {
  169. out := new(StatisticsResponse)
  170. err := c.cc.Invoke(ctx, Seaweed_Statistics_FullMethodName, in, out, opts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *seaweedClient) CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error) {
  177. out := new(CollectionListResponse)
  178. err := c.cc.Invoke(ctx, Seaweed_CollectionList_FullMethodName, in, out, opts...)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return out, nil
  183. }
  184. func (c *seaweedClient) CollectionDelete(ctx context.Context, in *CollectionDeleteRequest, opts ...grpc.CallOption) (*CollectionDeleteResponse, error) {
  185. out := new(CollectionDeleteResponse)
  186. err := c.cc.Invoke(ctx, Seaweed_CollectionDelete_FullMethodName, in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *seaweedClient) VolumeList(ctx context.Context, in *VolumeListRequest, opts ...grpc.CallOption) (*VolumeListResponse, error) {
  193. out := new(VolumeListResponse)
  194. err := c.cc.Invoke(ctx, Seaweed_VolumeList_FullMethodName, in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *seaweedClient) LookupEcVolume(ctx context.Context, in *LookupEcVolumeRequest, opts ...grpc.CallOption) (*LookupEcVolumeResponse, error) {
  201. out := new(LookupEcVolumeResponse)
  202. err := c.cc.Invoke(ctx, Seaweed_LookupEcVolume_FullMethodName, in, out, opts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *seaweedClient) VacuumVolume(ctx context.Context, in *VacuumVolumeRequest, opts ...grpc.CallOption) (*VacuumVolumeResponse, error) {
  209. out := new(VacuumVolumeResponse)
  210. err := c.cc.Invoke(ctx, Seaweed_VacuumVolume_FullMethodName, in, out, opts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *seaweedClient) DisableVacuum(ctx context.Context, in *DisableVacuumRequest, opts ...grpc.CallOption) (*DisableVacuumResponse, error) {
  217. out := new(DisableVacuumResponse)
  218. err := c.cc.Invoke(ctx, Seaweed_DisableVacuum_FullMethodName, in, out, opts...)
  219. if err != nil {
  220. return nil, err
  221. }
  222. return out, nil
  223. }
  224. func (c *seaweedClient) EnableVacuum(ctx context.Context, in *EnableVacuumRequest, opts ...grpc.CallOption) (*EnableVacuumResponse, error) {
  225. out := new(EnableVacuumResponse)
  226. err := c.cc.Invoke(ctx, Seaweed_EnableVacuum_FullMethodName, in, out, opts...)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return out, nil
  231. }
  232. func (c *seaweedClient) VolumeMarkReadonly(ctx context.Context, in *VolumeMarkReadonlyRequest, opts ...grpc.CallOption) (*VolumeMarkReadonlyResponse, error) {
  233. out := new(VolumeMarkReadonlyResponse)
  234. err := c.cc.Invoke(ctx, Seaweed_VolumeMarkReadonly_FullMethodName, in, out, opts...)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return out, nil
  239. }
  240. func (c *seaweedClient) GetMasterConfiguration(ctx context.Context, in *GetMasterConfigurationRequest, opts ...grpc.CallOption) (*GetMasterConfigurationResponse, error) {
  241. out := new(GetMasterConfigurationResponse)
  242. err := c.cc.Invoke(ctx, Seaweed_GetMasterConfiguration_FullMethodName, in, out, opts...)
  243. if err != nil {
  244. return nil, err
  245. }
  246. return out, nil
  247. }
  248. func (c *seaweedClient) ListClusterNodes(ctx context.Context, in *ListClusterNodesRequest, opts ...grpc.CallOption) (*ListClusterNodesResponse, error) {
  249. out := new(ListClusterNodesResponse)
  250. err := c.cc.Invoke(ctx, Seaweed_ListClusterNodes_FullMethodName, in, out, opts...)
  251. if err != nil {
  252. return nil, err
  253. }
  254. return out, nil
  255. }
  256. func (c *seaweedClient) LeaseAdminToken(ctx context.Context, in *LeaseAdminTokenRequest, opts ...grpc.CallOption) (*LeaseAdminTokenResponse, error) {
  257. out := new(LeaseAdminTokenResponse)
  258. err := c.cc.Invoke(ctx, Seaweed_LeaseAdminToken_FullMethodName, in, out, opts...)
  259. if err != nil {
  260. return nil, err
  261. }
  262. return out, nil
  263. }
  264. func (c *seaweedClient) ReleaseAdminToken(ctx context.Context, in *ReleaseAdminTokenRequest, opts ...grpc.CallOption) (*ReleaseAdminTokenResponse, error) {
  265. out := new(ReleaseAdminTokenResponse)
  266. err := c.cc.Invoke(ctx, Seaweed_ReleaseAdminToken_FullMethodName, in, out, opts...)
  267. if err != nil {
  268. return nil, err
  269. }
  270. return out, nil
  271. }
  272. func (c *seaweedClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
  273. out := new(PingResponse)
  274. err := c.cc.Invoke(ctx, Seaweed_Ping_FullMethodName, in, out, opts...)
  275. if err != nil {
  276. return nil, err
  277. }
  278. return out, nil
  279. }
  280. func (c *seaweedClient) RaftListClusterServers(ctx context.Context, in *RaftListClusterServersRequest, opts ...grpc.CallOption) (*RaftListClusterServersResponse, error) {
  281. out := new(RaftListClusterServersResponse)
  282. err := c.cc.Invoke(ctx, Seaweed_RaftListClusterServers_FullMethodName, in, out, opts...)
  283. if err != nil {
  284. return nil, err
  285. }
  286. return out, nil
  287. }
  288. func (c *seaweedClient) RaftAddServer(ctx context.Context, in *RaftAddServerRequest, opts ...grpc.CallOption) (*RaftAddServerResponse, error) {
  289. out := new(RaftAddServerResponse)
  290. err := c.cc.Invoke(ctx, Seaweed_RaftAddServer_FullMethodName, in, out, opts...)
  291. if err != nil {
  292. return nil, err
  293. }
  294. return out, nil
  295. }
  296. func (c *seaweedClient) RaftRemoveServer(ctx context.Context, in *RaftRemoveServerRequest, opts ...grpc.CallOption) (*RaftRemoveServerResponse, error) {
  297. out := new(RaftRemoveServerResponse)
  298. err := c.cc.Invoke(ctx, Seaweed_RaftRemoveServer_FullMethodName, in, out, opts...)
  299. if err != nil {
  300. return nil, err
  301. }
  302. return out, nil
  303. }
  304. // SeaweedServer is the server API for Seaweed service.
  305. // All implementations must embed UnimplementedSeaweedServer
  306. // for forward compatibility
  307. type SeaweedServer interface {
  308. SendHeartbeat(Seaweed_SendHeartbeatServer) error
  309. KeepConnected(Seaweed_KeepConnectedServer) error
  310. LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error)
  311. Assign(context.Context, *AssignRequest) (*AssignResponse, error)
  312. StreamAssign(Seaweed_StreamAssignServer) error
  313. Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
  314. CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error)
  315. CollectionDelete(context.Context, *CollectionDeleteRequest) (*CollectionDeleteResponse, error)
  316. VolumeList(context.Context, *VolumeListRequest) (*VolumeListResponse, error)
  317. LookupEcVolume(context.Context, *LookupEcVolumeRequest) (*LookupEcVolumeResponse, error)
  318. VacuumVolume(context.Context, *VacuumVolumeRequest) (*VacuumVolumeResponse, error)
  319. DisableVacuum(context.Context, *DisableVacuumRequest) (*DisableVacuumResponse, error)
  320. EnableVacuum(context.Context, *EnableVacuumRequest) (*EnableVacuumResponse, error)
  321. VolumeMarkReadonly(context.Context, *VolumeMarkReadonlyRequest) (*VolumeMarkReadonlyResponse, error)
  322. GetMasterConfiguration(context.Context, *GetMasterConfigurationRequest) (*GetMasterConfigurationResponse, error)
  323. ListClusterNodes(context.Context, *ListClusterNodesRequest) (*ListClusterNodesResponse, error)
  324. LeaseAdminToken(context.Context, *LeaseAdminTokenRequest) (*LeaseAdminTokenResponse, error)
  325. ReleaseAdminToken(context.Context, *ReleaseAdminTokenRequest) (*ReleaseAdminTokenResponse, error)
  326. Ping(context.Context, *PingRequest) (*PingResponse, error)
  327. RaftListClusterServers(context.Context, *RaftListClusterServersRequest) (*RaftListClusterServersResponse, error)
  328. RaftAddServer(context.Context, *RaftAddServerRequest) (*RaftAddServerResponse, error)
  329. RaftRemoveServer(context.Context, *RaftRemoveServerRequest) (*RaftRemoveServerResponse, error)
  330. mustEmbedUnimplementedSeaweedServer()
  331. }
  332. // UnimplementedSeaweedServer must be embedded to have forward compatible implementations.
  333. type UnimplementedSeaweedServer struct {
  334. }
  335. func (UnimplementedSeaweedServer) SendHeartbeat(Seaweed_SendHeartbeatServer) error {
  336. return status.Errorf(codes.Unimplemented, "method SendHeartbeat not implemented")
  337. }
  338. func (UnimplementedSeaweedServer) KeepConnected(Seaweed_KeepConnectedServer) error {
  339. return status.Errorf(codes.Unimplemented, "method KeepConnected not implemented")
  340. }
  341. func (UnimplementedSeaweedServer) LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error) {
  342. return nil, status.Errorf(codes.Unimplemented, "method LookupVolume not implemented")
  343. }
  344. func (UnimplementedSeaweedServer) Assign(context.Context, *AssignRequest) (*AssignResponse, error) {
  345. return nil, status.Errorf(codes.Unimplemented, "method Assign not implemented")
  346. }
  347. func (UnimplementedSeaweedServer) StreamAssign(Seaweed_StreamAssignServer) error {
  348. return status.Errorf(codes.Unimplemented, "method StreamAssign not implemented")
  349. }
  350. func (UnimplementedSeaweedServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) {
  351. return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented")
  352. }
  353. func (UnimplementedSeaweedServer) CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error) {
  354. return nil, status.Errorf(codes.Unimplemented, "method CollectionList not implemented")
  355. }
  356. func (UnimplementedSeaweedServer) CollectionDelete(context.Context, *CollectionDeleteRequest) (*CollectionDeleteResponse, error) {
  357. return nil, status.Errorf(codes.Unimplemented, "method CollectionDelete not implemented")
  358. }
  359. func (UnimplementedSeaweedServer) VolumeList(context.Context, *VolumeListRequest) (*VolumeListResponse, error) {
  360. return nil, status.Errorf(codes.Unimplemented, "method VolumeList not implemented")
  361. }
  362. func (UnimplementedSeaweedServer) LookupEcVolume(context.Context, *LookupEcVolumeRequest) (*LookupEcVolumeResponse, error) {
  363. return nil, status.Errorf(codes.Unimplemented, "method LookupEcVolume not implemented")
  364. }
  365. func (UnimplementedSeaweedServer) VacuumVolume(context.Context, *VacuumVolumeRequest) (*VacuumVolumeResponse, error) {
  366. return nil, status.Errorf(codes.Unimplemented, "method VacuumVolume not implemented")
  367. }
  368. func (UnimplementedSeaweedServer) DisableVacuum(context.Context, *DisableVacuumRequest) (*DisableVacuumResponse, error) {
  369. return nil, status.Errorf(codes.Unimplemented, "method DisableVacuum not implemented")
  370. }
  371. func (UnimplementedSeaweedServer) EnableVacuum(context.Context, *EnableVacuumRequest) (*EnableVacuumResponse, error) {
  372. return nil, status.Errorf(codes.Unimplemented, "method EnableVacuum not implemented")
  373. }
  374. func (UnimplementedSeaweedServer) VolumeMarkReadonly(context.Context, *VolumeMarkReadonlyRequest) (*VolumeMarkReadonlyResponse, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method VolumeMarkReadonly not implemented")
  376. }
  377. func (UnimplementedSeaweedServer) GetMasterConfiguration(context.Context, *GetMasterConfigurationRequest) (*GetMasterConfigurationResponse, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method GetMasterConfiguration not implemented")
  379. }
  380. func (UnimplementedSeaweedServer) ListClusterNodes(context.Context, *ListClusterNodesRequest) (*ListClusterNodesResponse, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method ListClusterNodes not implemented")
  382. }
  383. func (UnimplementedSeaweedServer) LeaseAdminToken(context.Context, *LeaseAdminTokenRequest) (*LeaseAdminTokenResponse, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method LeaseAdminToken not implemented")
  385. }
  386. func (UnimplementedSeaweedServer) ReleaseAdminToken(context.Context, *ReleaseAdminTokenRequest) (*ReleaseAdminTokenResponse, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method ReleaseAdminToken not implemented")
  388. }
  389. func (UnimplementedSeaweedServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
  390. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  391. }
  392. func (UnimplementedSeaweedServer) RaftListClusterServers(context.Context, *RaftListClusterServersRequest) (*RaftListClusterServersResponse, error) {
  393. return nil, status.Errorf(codes.Unimplemented, "method RaftListClusterServers not implemented")
  394. }
  395. func (UnimplementedSeaweedServer) RaftAddServer(context.Context, *RaftAddServerRequest) (*RaftAddServerResponse, error) {
  396. return nil, status.Errorf(codes.Unimplemented, "method RaftAddServer not implemented")
  397. }
  398. func (UnimplementedSeaweedServer) RaftRemoveServer(context.Context, *RaftRemoveServerRequest) (*RaftRemoveServerResponse, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method RaftRemoveServer not implemented")
  400. }
  401. func (UnimplementedSeaweedServer) mustEmbedUnimplementedSeaweedServer() {}
  402. // UnsafeSeaweedServer may be embedded to opt out of forward compatibility for this service.
  403. // Use of this interface is not recommended, as added methods to SeaweedServer will
  404. // result in compilation errors.
  405. type UnsafeSeaweedServer interface {
  406. mustEmbedUnimplementedSeaweedServer()
  407. }
  408. func RegisterSeaweedServer(s grpc.ServiceRegistrar, srv SeaweedServer) {
  409. s.RegisterService(&Seaweed_ServiceDesc, srv)
  410. }
  411. func _Seaweed_SendHeartbeat_Handler(srv interface{}, stream grpc.ServerStream) error {
  412. return srv.(SeaweedServer).SendHeartbeat(&seaweedSendHeartbeatServer{stream})
  413. }
  414. type Seaweed_SendHeartbeatServer interface {
  415. Send(*HeartbeatResponse) error
  416. Recv() (*Heartbeat, error)
  417. grpc.ServerStream
  418. }
  419. type seaweedSendHeartbeatServer struct {
  420. grpc.ServerStream
  421. }
  422. func (x *seaweedSendHeartbeatServer) Send(m *HeartbeatResponse) error {
  423. return x.ServerStream.SendMsg(m)
  424. }
  425. func (x *seaweedSendHeartbeatServer) Recv() (*Heartbeat, error) {
  426. m := new(Heartbeat)
  427. if err := x.ServerStream.RecvMsg(m); err != nil {
  428. return nil, err
  429. }
  430. return m, nil
  431. }
  432. func _Seaweed_KeepConnected_Handler(srv interface{}, stream grpc.ServerStream) error {
  433. return srv.(SeaweedServer).KeepConnected(&seaweedKeepConnectedServer{stream})
  434. }
  435. type Seaweed_KeepConnectedServer interface {
  436. Send(*KeepConnectedResponse) error
  437. Recv() (*KeepConnectedRequest, error)
  438. grpc.ServerStream
  439. }
  440. type seaweedKeepConnectedServer struct {
  441. grpc.ServerStream
  442. }
  443. func (x *seaweedKeepConnectedServer) Send(m *KeepConnectedResponse) error {
  444. return x.ServerStream.SendMsg(m)
  445. }
  446. func (x *seaweedKeepConnectedServer) Recv() (*KeepConnectedRequest, error) {
  447. m := new(KeepConnectedRequest)
  448. if err := x.ServerStream.RecvMsg(m); err != nil {
  449. return nil, err
  450. }
  451. return m, nil
  452. }
  453. func _Seaweed_LookupVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  454. in := new(LookupVolumeRequest)
  455. if err := dec(in); err != nil {
  456. return nil, err
  457. }
  458. if interceptor == nil {
  459. return srv.(SeaweedServer).LookupVolume(ctx, in)
  460. }
  461. info := &grpc.UnaryServerInfo{
  462. Server: srv,
  463. FullMethod: Seaweed_LookupVolume_FullMethodName,
  464. }
  465. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  466. return srv.(SeaweedServer).LookupVolume(ctx, req.(*LookupVolumeRequest))
  467. }
  468. return interceptor(ctx, in, info, handler)
  469. }
  470. func _Seaweed_Assign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  471. in := new(AssignRequest)
  472. if err := dec(in); err != nil {
  473. return nil, err
  474. }
  475. if interceptor == nil {
  476. return srv.(SeaweedServer).Assign(ctx, in)
  477. }
  478. info := &grpc.UnaryServerInfo{
  479. Server: srv,
  480. FullMethod: Seaweed_Assign_FullMethodName,
  481. }
  482. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  483. return srv.(SeaweedServer).Assign(ctx, req.(*AssignRequest))
  484. }
  485. return interceptor(ctx, in, info, handler)
  486. }
  487. func _Seaweed_StreamAssign_Handler(srv interface{}, stream grpc.ServerStream) error {
  488. return srv.(SeaweedServer).StreamAssign(&seaweedStreamAssignServer{stream})
  489. }
  490. type Seaweed_StreamAssignServer interface {
  491. Send(*AssignResponse) error
  492. Recv() (*AssignRequest, error)
  493. grpc.ServerStream
  494. }
  495. type seaweedStreamAssignServer struct {
  496. grpc.ServerStream
  497. }
  498. func (x *seaweedStreamAssignServer) Send(m *AssignResponse) error {
  499. return x.ServerStream.SendMsg(m)
  500. }
  501. func (x *seaweedStreamAssignServer) Recv() (*AssignRequest, error) {
  502. m := new(AssignRequest)
  503. if err := x.ServerStream.RecvMsg(m); err != nil {
  504. return nil, err
  505. }
  506. return m, nil
  507. }
  508. func _Seaweed_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  509. in := new(StatisticsRequest)
  510. if err := dec(in); err != nil {
  511. return nil, err
  512. }
  513. if interceptor == nil {
  514. return srv.(SeaweedServer).Statistics(ctx, in)
  515. }
  516. info := &grpc.UnaryServerInfo{
  517. Server: srv,
  518. FullMethod: Seaweed_Statistics_FullMethodName,
  519. }
  520. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  521. return srv.(SeaweedServer).Statistics(ctx, req.(*StatisticsRequest))
  522. }
  523. return interceptor(ctx, in, info, handler)
  524. }
  525. func _Seaweed_CollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  526. in := new(CollectionListRequest)
  527. if err := dec(in); err != nil {
  528. return nil, err
  529. }
  530. if interceptor == nil {
  531. return srv.(SeaweedServer).CollectionList(ctx, in)
  532. }
  533. info := &grpc.UnaryServerInfo{
  534. Server: srv,
  535. FullMethod: Seaweed_CollectionList_FullMethodName,
  536. }
  537. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  538. return srv.(SeaweedServer).CollectionList(ctx, req.(*CollectionListRequest))
  539. }
  540. return interceptor(ctx, in, info, handler)
  541. }
  542. func _Seaweed_CollectionDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  543. in := new(CollectionDeleteRequest)
  544. if err := dec(in); err != nil {
  545. return nil, err
  546. }
  547. if interceptor == nil {
  548. return srv.(SeaweedServer).CollectionDelete(ctx, in)
  549. }
  550. info := &grpc.UnaryServerInfo{
  551. Server: srv,
  552. FullMethod: Seaweed_CollectionDelete_FullMethodName,
  553. }
  554. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  555. return srv.(SeaweedServer).CollectionDelete(ctx, req.(*CollectionDeleteRequest))
  556. }
  557. return interceptor(ctx, in, info, handler)
  558. }
  559. func _Seaweed_VolumeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  560. in := new(VolumeListRequest)
  561. if err := dec(in); err != nil {
  562. return nil, err
  563. }
  564. if interceptor == nil {
  565. return srv.(SeaweedServer).VolumeList(ctx, in)
  566. }
  567. info := &grpc.UnaryServerInfo{
  568. Server: srv,
  569. FullMethod: Seaweed_VolumeList_FullMethodName,
  570. }
  571. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  572. return srv.(SeaweedServer).VolumeList(ctx, req.(*VolumeListRequest))
  573. }
  574. return interceptor(ctx, in, info, handler)
  575. }
  576. func _Seaweed_LookupEcVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  577. in := new(LookupEcVolumeRequest)
  578. if err := dec(in); err != nil {
  579. return nil, err
  580. }
  581. if interceptor == nil {
  582. return srv.(SeaweedServer).LookupEcVolume(ctx, in)
  583. }
  584. info := &grpc.UnaryServerInfo{
  585. Server: srv,
  586. FullMethod: Seaweed_LookupEcVolume_FullMethodName,
  587. }
  588. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  589. return srv.(SeaweedServer).LookupEcVolume(ctx, req.(*LookupEcVolumeRequest))
  590. }
  591. return interceptor(ctx, in, info, handler)
  592. }
  593. func _Seaweed_VacuumVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  594. in := new(VacuumVolumeRequest)
  595. if err := dec(in); err != nil {
  596. return nil, err
  597. }
  598. if interceptor == nil {
  599. return srv.(SeaweedServer).VacuumVolume(ctx, in)
  600. }
  601. info := &grpc.UnaryServerInfo{
  602. Server: srv,
  603. FullMethod: Seaweed_VacuumVolume_FullMethodName,
  604. }
  605. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  606. return srv.(SeaweedServer).VacuumVolume(ctx, req.(*VacuumVolumeRequest))
  607. }
  608. return interceptor(ctx, in, info, handler)
  609. }
  610. func _Seaweed_DisableVacuum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  611. in := new(DisableVacuumRequest)
  612. if err := dec(in); err != nil {
  613. return nil, err
  614. }
  615. if interceptor == nil {
  616. return srv.(SeaweedServer).DisableVacuum(ctx, in)
  617. }
  618. info := &grpc.UnaryServerInfo{
  619. Server: srv,
  620. FullMethod: Seaweed_DisableVacuum_FullMethodName,
  621. }
  622. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  623. return srv.(SeaweedServer).DisableVacuum(ctx, req.(*DisableVacuumRequest))
  624. }
  625. return interceptor(ctx, in, info, handler)
  626. }
  627. func _Seaweed_EnableVacuum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  628. in := new(EnableVacuumRequest)
  629. if err := dec(in); err != nil {
  630. return nil, err
  631. }
  632. if interceptor == nil {
  633. return srv.(SeaweedServer).EnableVacuum(ctx, in)
  634. }
  635. info := &grpc.UnaryServerInfo{
  636. Server: srv,
  637. FullMethod: Seaweed_EnableVacuum_FullMethodName,
  638. }
  639. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  640. return srv.(SeaweedServer).EnableVacuum(ctx, req.(*EnableVacuumRequest))
  641. }
  642. return interceptor(ctx, in, info, handler)
  643. }
  644. func _Seaweed_VolumeMarkReadonly_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  645. in := new(VolumeMarkReadonlyRequest)
  646. if err := dec(in); err != nil {
  647. return nil, err
  648. }
  649. if interceptor == nil {
  650. return srv.(SeaweedServer).VolumeMarkReadonly(ctx, in)
  651. }
  652. info := &grpc.UnaryServerInfo{
  653. Server: srv,
  654. FullMethod: Seaweed_VolumeMarkReadonly_FullMethodName,
  655. }
  656. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  657. return srv.(SeaweedServer).VolumeMarkReadonly(ctx, req.(*VolumeMarkReadonlyRequest))
  658. }
  659. return interceptor(ctx, in, info, handler)
  660. }
  661. func _Seaweed_GetMasterConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  662. in := new(GetMasterConfigurationRequest)
  663. if err := dec(in); err != nil {
  664. return nil, err
  665. }
  666. if interceptor == nil {
  667. return srv.(SeaweedServer).GetMasterConfiguration(ctx, in)
  668. }
  669. info := &grpc.UnaryServerInfo{
  670. Server: srv,
  671. FullMethod: Seaweed_GetMasterConfiguration_FullMethodName,
  672. }
  673. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  674. return srv.(SeaweedServer).GetMasterConfiguration(ctx, req.(*GetMasterConfigurationRequest))
  675. }
  676. return interceptor(ctx, in, info, handler)
  677. }
  678. func _Seaweed_ListClusterNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  679. in := new(ListClusterNodesRequest)
  680. if err := dec(in); err != nil {
  681. return nil, err
  682. }
  683. if interceptor == nil {
  684. return srv.(SeaweedServer).ListClusterNodes(ctx, in)
  685. }
  686. info := &grpc.UnaryServerInfo{
  687. Server: srv,
  688. FullMethod: Seaweed_ListClusterNodes_FullMethodName,
  689. }
  690. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  691. return srv.(SeaweedServer).ListClusterNodes(ctx, req.(*ListClusterNodesRequest))
  692. }
  693. return interceptor(ctx, in, info, handler)
  694. }
  695. func _Seaweed_LeaseAdminToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  696. in := new(LeaseAdminTokenRequest)
  697. if err := dec(in); err != nil {
  698. return nil, err
  699. }
  700. if interceptor == nil {
  701. return srv.(SeaweedServer).LeaseAdminToken(ctx, in)
  702. }
  703. info := &grpc.UnaryServerInfo{
  704. Server: srv,
  705. FullMethod: Seaweed_LeaseAdminToken_FullMethodName,
  706. }
  707. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  708. return srv.(SeaweedServer).LeaseAdminToken(ctx, req.(*LeaseAdminTokenRequest))
  709. }
  710. return interceptor(ctx, in, info, handler)
  711. }
  712. func _Seaweed_ReleaseAdminToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  713. in := new(ReleaseAdminTokenRequest)
  714. if err := dec(in); err != nil {
  715. return nil, err
  716. }
  717. if interceptor == nil {
  718. return srv.(SeaweedServer).ReleaseAdminToken(ctx, in)
  719. }
  720. info := &grpc.UnaryServerInfo{
  721. Server: srv,
  722. FullMethod: Seaweed_ReleaseAdminToken_FullMethodName,
  723. }
  724. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  725. return srv.(SeaweedServer).ReleaseAdminToken(ctx, req.(*ReleaseAdminTokenRequest))
  726. }
  727. return interceptor(ctx, in, info, handler)
  728. }
  729. func _Seaweed_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  730. in := new(PingRequest)
  731. if err := dec(in); err != nil {
  732. return nil, err
  733. }
  734. if interceptor == nil {
  735. return srv.(SeaweedServer).Ping(ctx, in)
  736. }
  737. info := &grpc.UnaryServerInfo{
  738. Server: srv,
  739. FullMethod: Seaweed_Ping_FullMethodName,
  740. }
  741. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  742. return srv.(SeaweedServer).Ping(ctx, req.(*PingRequest))
  743. }
  744. return interceptor(ctx, in, info, handler)
  745. }
  746. func _Seaweed_RaftListClusterServers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  747. in := new(RaftListClusterServersRequest)
  748. if err := dec(in); err != nil {
  749. return nil, err
  750. }
  751. if interceptor == nil {
  752. return srv.(SeaweedServer).RaftListClusterServers(ctx, in)
  753. }
  754. info := &grpc.UnaryServerInfo{
  755. Server: srv,
  756. FullMethod: Seaweed_RaftListClusterServers_FullMethodName,
  757. }
  758. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  759. return srv.(SeaweedServer).RaftListClusterServers(ctx, req.(*RaftListClusterServersRequest))
  760. }
  761. return interceptor(ctx, in, info, handler)
  762. }
  763. func _Seaweed_RaftAddServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  764. in := new(RaftAddServerRequest)
  765. if err := dec(in); err != nil {
  766. return nil, err
  767. }
  768. if interceptor == nil {
  769. return srv.(SeaweedServer).RaftAddServer(ctx, in)
  770. }
  771. info := &grpc.UnaryServerInfo{
  772. Server: srv,
  773. FullMethod: Seaweed_RaftAddServer_FullMethodName,
  774. }
  775. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  776. return srv.(SeaweedServer).RaftAddServer(ctx, req.(*RaftAddServerRequest))
  777. }
  778. return interceptor(ctx, in, info, handler)
  779. }
  780. func _Seaweed_RaftRemoveServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  781. in := new(RaftRemoveServerRequest)
  782. if err := dec(in); err != nil {
  783. return nil, err
  784. }
  785. if interceptor == nil {
  786. return srv.(SeaweedServer).RaftRemoveServer(ctx, in)
  787. }
  788. info := &grpc.UnaryServerInfo{
  789. Server: srv,
  790. FullMethod: Seaweed_RaftRemoveServer_FullMethodName,
  791. }
  792. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  793. return srv.(SeaweedServer).RaftRemoveServer(ctx, req.(*RaftRemoveServerRequest))
  794. }
  795. return interceptor(ctx, in, info, handler)
  796. }
  797. // Seaweed_ServiceDesc is the grpc.ServiceDesc for Seaweed service.
  798. // It's only intended for direct use with grpc.RegisterService,
  799. // and not to be introspected or modified (even as a copy)
  800. var Seaweed_ServiceDesc = grpc.ServiceDesc{
  801. ServiceName: "master_pb.Seaweed",
  802. HandlerType: (*SeaweedServer)(nil),
  803. Methods: []grpc.MethodDesc{
  804. {
  805. MethodName: "LookupVolume",
  806. Handler: _Seaweed_LookupVolume_Handler,
  807. },
  808. {
  809. MethodName: "Assign",
  810. Handler: _Seaweed_Assign_Handler,
  811. },
  812. {
  813. MethodName: "Statistics",
  814. Handler: _Seaweed_Statistics_Handler,
  815. },
  816. {
  817. MethodName: "CollectionList",
  818. Handler: _Seaweed_CollectionList_Handler,
  819. },
  820. {
  821. MethodName: "CollectionDelete",
  822. Handler: _Seaweed_CollectionDelete_Handler,
  823. },
  824. {
  825. MethodName: "VolumeList",
  826. Handler: _Seaweed_VolumeList_Handler,
  827. },
  828. {
  829. MethodName: "LookupEcVolume",
  830. Handler: _Seaweed_LookupEcVolume_Handler,
  831. },
  832. {
  833. MethodName: "VacuumVolume",
  834. Handler: _Seaweed_VacuumVolume_Handler,
  835. },
  836. {
  837. MethodName: "DisableVacuum",
  838. Handler: _Seaweed_DisableVacuum_Handler,
  839. },
  840. {
  841. MethodName: "EnableVacuum",
  842. Handler: _Seaweed_EnableVacuum_Handler,
  843. },
  844. {
  845. MethodName: "VolumeMarkReadonly",
  846. Handler: _Seaweed_VolumeMarkReadonly_Handler,
  847. },
  848. {
  849. MethodName: "GetMasterConfiguration",
  850. Handler: _Seaweed_GetMasterConfiguration_Handler,
  851. },
  852. {
  853. MethodName: "ListClusterNodes",
  854. Handler: _Seaweed_ListClusterNodes_Handler,
  855. },
  856. {
  857. MethodName: "LeaseAdminToken",
  858. Handler: _Seaweed_LeaseAdminToken_Handler,
  859. },
  860. {
  861. MethodName: "ReleaseAdminToken",
  862. Handler: _Seaweed_ReleaseAdminToken_Handler,
  863. },
  864. {
  865. MethodName: "Ping",
  866. Handler: _Seaweed_Ping_Handler,
  867. },
  868. {
  869. MethodName: "RaftListClusterServers",
  870. Handler: _Seaweed_RaftListClusterServers_Handler,
  871. },
  872. {
  873. MethodName: "RaftAddServer",
  874. Handler: _Seaweed_RaftAddServer_Handler,
  875. },
  876. {
  877. MethodName: "RaftRemoveServer",
  878. Handler: _Seaweed_RaftRemoveServer_Handler,
  879. },
  880. },
  881. Streams: []grpc.StreamDesc{
  882. {
  883. StreamName: "SendHeartbeat",
  884. Handler: _Seaweed_SendHeartbeat_Handler,
  885. ServerStreams: true,
  886. ClientStreams: true,
  887. },
  888. {
  889. StreamName: "KeepConnected",
  890. Handler: _Seaweed_KeepConnected_Handler,
  891. ServerStreams: true,
  892. ClientStreams: true,
  893. },
  894. {
  895. StreamName: "StreamAssign",
  896. Handler: _Seaweed_StreamAssign_Handler,
  897. ServerStreams: true,
  898. ClientStreams: true,
  899. },
  900. },
  901. Metadata: "master.proto",
  902. }