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.

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