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.

1020 lines
39 KiB

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