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.

998 lines
38 KiB

  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package filer_pb
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. )
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the grpc package it is being compiled against.
  11. // Requires gRPC-Go v1.32.0 or later.
  12. const _ = grpc.SupportPackageIsVersion7
  13. // SeaweedFilerClient is the client API for SeaweedFiler service.
  14. //
  15. // 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.
  16. type SeaweedFilerClient interface {
  17. LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error)
  18. ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error)
  19. CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error)
  20. UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error)
  21. AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error)
  22. DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error)
  23. AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error)
  24. StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error)
  25. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  26. LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error)
  27. CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error)
  28. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  29. Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
  30. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
  31. GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error)
  32. SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error)
  33. SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error)
  34. KeepConnected(ctx context.Context, opts ...grpc.CallOption) (SeaweedFiler_KeepConnectedClient, error)
  35. LocateBroker(ctx context.Context, in *LocateBrokerRequest, opts ...grpc.CallOption) (*LocateBrokerResponse, error)
  36. KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error)
  37. KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error)
  38. CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error)
  39. }
  40. type seaweedFilerClient struct {
  41. cc grpc.ClientConnInterface
  42. }
  43. func NewSeaweedFilerClient(cc grpc.ClientConnInterface) SeaweedFilerClient {
  44. return &seaweedFilerClient{cc}
  45. }
  46. func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) {
  47. out := new(LookupDirectoryEntryResponse)
  48. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, opts...)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return out, nil
  53. }
  54. func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error) {
  55. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[0], "/filer_pb.SeaweedFiler/ListEntries", opts...)
  56. if err != nil {
  57. return nil, err
  58. }
  59. x := &seaweedFilerListEntriesClient{stream}
  60. if err := x.ClientStream.SendMsg(in); err != nil {
  61. return nil, err
  62. }
  63. if err := x.ClientStream.CloseSend(); err != nil {
  64. return nil, err
  65. }
  66. return x, nil
  67. }
  68. type SeaweedFiler_ListEntriesClient interface {
  69. Recv() (*ListEntriesResponse, error)
  70. grpc.ClientStream
  71. }
  72. type seaweedFilerListEntriesClient struct {
  73. grpc.ClientStream
  74. }
  75. func (x *seaweedFilerListEntriesClient) Recv() (*ListEntriesResponse, error) {
  76. m := new(ListEntriesResponse)
  77. if err := x.ClientStream.RecvMsg(m); err != nil {
  78. return nil, err
  79. }
  80. return m, nil
  81. }
  82. func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) {
  83. out := new(CreateEntryResponse)
  84. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, opts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error) {
  91. out := new(UpdateEntryResponse)
  92. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. func (c *seaweedFilerClient) AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error) {
  99. out := new(AppendToEntryResponse)
  100. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AppendToEntry", in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) {
  107. out := new(DeleteEntryResponse)
  108. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, opts...)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return out, nil
  113. }
  114. func (c *seaweedFilerClient) AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error) {
  115. out := new(AtomicRenameEntryResponse)
  116. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AtomicRenameEntry", in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *seaweedFilerClient) StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error) {
  123. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[1], "/filer_pb.SeaweedFiler/StreamRenameEntry", opts...)
  124. if err != nil {
  125. return nil, err
  126. }
  127. x := &seaweedFilerStreamRenameEntryClient{stream}
  128. if err := x.ClientStream.SendMsg(in); err != nil {
  129. return nil, err
  130. }
  131. if err := x.ClientStream.CloseSend(); err != nil {
  132. return nil, err
  133. }
  134. return x, nil
  135. }
  136. type SeaweedFiler_StreamRenameEntryClient interface {
  137. Recv() (*StreamRenameEntryResponse, error)
  138. grpc.ClientStream
  139. }
  140. type seaweedFilerStreamRenameEntryClient struct {
  141. grpc.ClientStream
  142. }
  143. func (x *seaweedFilerStreamRenameEntryClient) Recv() (*StreamRenameEntryResponse, error) {
  144. m := new(StreamRenameEntryResponse)
  145. if err := x.ClientStream.RecvMsg(m); err != nil {
  146. return nil, err
  147. }
  148. return m, nil
  149. }
  150. func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  151. out := new(AssignVolumeResponse)
  152. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *seaweedFilerClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) {
  159. out := new(LookupVolumeResponse)
  160. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupVolume", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. func (c *seaweedFilerClient) CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error) {
  167. out := new(CollectionListResponse)
  168. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CollectionList", in, out, opts...)
  169. if err != nil {
  170. return nil, err
  171. }
  172. return out, nil
  173. }
  174. func (c *seaweedFilerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  175. out := new(DeleteCollectionResponse)
  176. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteCollection", in, out, opts...)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return out, nil
  181. }
  182. func (c *seaweedFilerClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) {
  183. out := new(StatisticsResponse)
  184. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Statistics", in, out, opts...)
  185. if err != nil {
  186. return nil, err
  187. }
  188. return out, nil
  189. }
  190. func (c *seaweedFilerClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
  191. out := new(PingResponse)
  192. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Ping", in, out, opts...)
  193. if err != nil {
  194. return nil, err
  195. }
  196. return out, nil
  197. }
  198. func (c *seaweedFilerClient) GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error) {
  199. out := new(GetFilerConfigurationResponse)
  200. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFilerConfiguration", in, out, opts...)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return out, nil
  205. }
  206. func (c *seaweedFilerClient) SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error) {
  207. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[2], "/filer_pb.SeaweedFiler/SubscribeMetadata", opts...)
  208. if err != nil {
  209. return nil, err
  210. }
  211. x := &seaweedFilerSubscribeMetadataClient{stream}
  212. if err := x.ClientStream.SendMsg(in); err != nil {
  213. return nil, err
  214. }
  215. if err := x.ClientStream.CloseSend(); err != nil {
  216. return nil, err
  217. }
  218. return x, nil
  219. }
  220. type SeaweedFiler_SubscribeMetadataClient interface {
  221. Recv() (*SubscribeMetadataResponse, error)
  222. grpc.ClientStream
  223. }
  224. type seaweedFilerSubscribeMetadataClient struct {
  225. grpc.ClientStream
  226. }
  227. func (x *seaweedFilerSubscribeMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  228. m := new(SubscribeMetadataResponse)
  229. if err := x.ClientStream.RecvMsg(m); err != nil {
  230. return nil, err
  231. }
  232. return m, nil
  233. }
  234. func (c *seaweedFilerClient) SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error) {
  235. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[3], "/filer_pb.SeaweedFiler/SubscribeLocalMetadata", opts...)
  236. if err != nil {
  237. return nil, err
  238. }
  239. x := &seaweedFilerSubscribeLocalMetadataClient{stream}
  240. if err := x.ClientStream.SendMsg(in); err != nil {
  241. return nil, err
  242. }
  243. if err := x.ClientStream.CloseSend(); err != nil {
  244. return nil, err
  245. }
  246. return x, nil
  247. }
  248. type SeaweedFiler_SubscribeLocalMetadataClient interface {
  249. Recv() (*SubscribeMetadataResponse, error)
  250. grpc.ClientStream
  251. }
  252. type seaweedFilerSubscribeLocalMetadataClient struct {
  253. grpc.ClientStream
  254. }
  255. func (x *seaweedFilerSubscribeLocalMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  256. m := new(SubscribeMetadataResponse)
  257. if err := x.ClientStream.RecvMsg(m); err != nil {
  258. return nil, err
  259. }
  260. return m, nil
  261. }
  262. func (c *seaweedFilerClient) KeepConnected(ctx context.Context, opts ...grpc.CallOption) (SeaweedFiler_KeepConnectedClient, error) {
  263. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[4], "/filer_pb.SeaweedFiler/KeepConnected", opts...)
  264. if err != nil {
  265. return nil, err
  266. }
  267. x := &seaweedFilerKeepConnectedClient{stream}
  268. return x, nil
  269. }
  270. type SeaweedFiler_KeepConnectedClient interface {
  271. Send(*KeepConnectedRequest) error
  272. Recv() (*KeepConnectedResponse, error)
  273. grpc.ClientStream
  274. }
  275. type seaweedFilerKeepConnectedClient struct {
  276. grpc.ClientStream
  277. }
  278. func (x *seaweedFilerKeepConnectedClient) Send(m *KeepConnectedRequest) error {
  279. return x.ClientStream.SendMsg(m)
  280. }
  281. func (x *seaweedFilerKeepConnectedClient) Recv() (*KeepConnectedResponse, error) {
  282. m := new(KeepConnectedResponse)
  283. if err := x.ClientStream.RecvMsg(m); err != nil {
  284. return nil, err
  285. }
  286. return m, nil
  287. }
  288. func (c *seaweedFilerClient) LocateBroker(ctx context.Context, in *LocateBrokerRequest, opts ...grpc.CallOption) (*LocateBrokerResponse, error) {
  289. out := new(LocateBrokerResponse)
  290. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LocateBroker", in, out, opts...)
  291. if err != nil {
  292. return nil, err
  293. }
  294. return out, nil
  295. }
  296. func (c *seaweedFilerClient) KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error) {
  297. out := new(KvGetResponse)
  298. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvGet", in, out, opts...)
  299. if err != nil {
  300. return nil, err
  301. }
  302. return out, nil
  303. }
  304. func (c *seaweedFilerClient) KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error) {
  305. out := new(KvPutResponse)
  306. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvPut", in, out, opts...)
  307. if err != nil {
  308. return nil, err
  309. }
  310. return out, nil
  311. }
  312. func (c *seaweedFilerClient) CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error) {
  313. out := new(CacheRemoteObjectToLocalClusterResponse)
  314. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster", in, out, opts...)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return out, nil
  319. }
  320. // SeaweedFilerServer is the server API for SeaweedFiler service.
  321. // All implementations must embed UnimplementedSeaweedFilerServer
  322. // for forward compatibility
  323. type SeaweedFilerServer interface {
  324. LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error)
  325. ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error
  326. CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error)
  327. UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error)
  328. AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error)
  329. DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error)
  330. AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error)
  331. StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error
  332. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  333. LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error)
  334. CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error)
  335. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  336. Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
  337. Ping(context.Context, *PingRequest) (*PingResponse, error)
  338. GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error)
  339. SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error
  340. SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error
  341. KeepConnected(SeaweedFiler_KeepConnectedServer) error
  342. LocateBroker(context.Context, *LocateBrokerRequest) (*LocateBrokerResponse, error)
  343. KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error)
  344. KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error)
  345. CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error)
  346. mustEmbedUnimplementedSeaweedFilerServer()
  347. }
  348. // UnimplementedSeaweedFilerServer must be embedded to have forward compatible implementations.
  349. type UnimplementedSeaweedFilerServer struct {
  350. }
  351. func (UnimplementedSeaweedFilerServer) LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error) {
  352. return nil, status.Errorf(codes.Unimplemented, "method LookupDirectoryEntry not implemented")
  353. }
  354. func (UnimplementedSeaweedFilerServer) ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error {
  355. return status.Errorf(codes.Unimplemented, "method ListEntries not implemented")
  356. }
  357. func (UnimplementedSeaweedFilerServer) CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error) {
  358. return nil, status.Errorf(codes.Unimplemented, "method CreateEntry not implemented")
  359. }
  360. func (UnimplementedSeaweedFilerServer) UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error) {
  361. return nil, status.Errorf(codes.Unimplemented, "method UpdateEntry not implemented")
  362. }
  363. func (UnimplementedSeaweedFilerServer) AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error) {
  364. return nil, status.Errorf(codes.Unimplemented, "method AppendToEntry not implemented")
  365. }
  366. func (UnimplementedSeaweedFilerServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error) {
  367. return nil, status.Errorf(codes.Unimplemented, "method DeleteEntry not implemented")
  368. }
  369. func (UnimplementedSeaweedFilerServer) AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error) {
  370. return nil, status.Errorf(codes.Unimplemented, "method AtomicRenameEntry not implemented")
  371. }
  372. func (UnimplementedSeaweedFilerServer) StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error {
  373. return status.Errorf(codes.Unimplemented, "method StreamRenameEntry not implemented")
  374. }
  375. func (UnimplementedSeaweedFilerServer) AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error) {
  376. return nil, status.Errorf(codes.Unimplemented, "method AssignVolume not implemented")
  377. }
  378. func (UnimplementedSeaweedFilerServer) LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error) {
  379. return nil, status.Errorf(codes.Unimplemented, "method LookupVolume not implemented")
  380. }
  381. func (UnimplementedSeaweedFilerServer) CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error) {
  382. return nil, status.Errorf(codes.Unimplemented, "method CollectionList not implemented")
  383. }
  384. func (UnimplementedSeaweedFilerServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) {
  385. return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented")
  386. }
  387. func (UnimplementedSeaweedFilerServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) {
  388. return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented")
  389. }
  390. func (UnimplementedSeaweedFilerServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
  391. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  392. }
  393. func (UnimplementedSeaweedFilerServer) GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error) {
  394. return nil, status.Errorf(codes.Unimplemented, "method GetFilerConfiguration not implemented")
  395. }
  396. func (UnimplementedSeaweedFilerServer) SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error {
  397. return status.Errorf(codes.Unimplemented, "method SubscribeMetadata not implemented")
  398. }
  399. func (UnimplementedSeaweedFilerServer) SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error {
  400. return status.Errorf(codes.Unimplemented, "method SubscribeLocalMetadata not implemented")
  401. }
  402. func (UnimplementedSeaweedFilerServer) KeepConnected(SeaweedFiler_KeepConnectedServer) error {
  403. return status.Errorf(codes.Unimplemented, "method KeepConnected not implemented")
  404. }
  405. func (UnimplementedSeaweedFilerServer) LocateBroker(context.Context, *LocateBrokerRequest) (*LocateBrokerResponse, error) {
  406. return nil, status.Errorf(codes.Unimplemented, "method LocateBroker not implemented")
  407. }
  408. func (UnimplementedSeaweedFilerServer) KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error) {
  409. return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented")
  410. }
  411. func (UnimplementedSeaweedFilerServer) KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error) {
  412. return nil, status.Errorf(codes.Unimplemented, "method KvPut not implemented")
  413. }
  414. func (UnimplementedSeaweedFilerServer) CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error) {
  415. return nil, status.Errorf(codes.Unimplemented, "method CacheRemoteObjectToLocalCluster not implemented")
  416. }
  417. func (UnimplementedSeaweedFilerServer) mustEmbedUnimplementedSeaweedFilerServer() {}
  418. // UnsafeSeaweedFilerServer may be embedded to opt out of forward compatibility for this service.
  419. // Use of this interface is not recommended, as added methods to SeaweedFilerServer will
  420. // result in compilation errors.
  421. type UnsafeSeaweedFilerServer interface {
  422. mustEmbedUnimplementedSeaweedFilerServer()
  423. }
  424. func RegisterSeaweedFilerServer(s grpc.ServiceRegistrar, srv SeaweedFilerServer) {
  425. s.RegisterService(&SeaweedFiler_ServiceDesc, srv)
  426. }
  427. func _SeaweedFiler_LookupDirectoryEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  428. in := new(LookupDirectoryEntryRequest)
  429. if err := dec(in); err != nil {
  430. return nil, err
  431. }
  432. if interceptor == nil {
  433. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, in)
  434. }
  435. info := &grpc.UnaryServerInfo{
  436. Server: srv,
  437. FullMethod: "/filer_pb.SeaweedFiler/LookupDirectoryEntry",
  438. }
  439. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  440. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, req.(*LookupDirectoryEntryRequest))
  441. }
  442. return interceptor(ctx, in, info, handler)
  443. }
  444. func _SeaweedFiler_ListEntries_Handler(srv interface{}, stream grpc.ServerStream) error {
  445. m := new(ListEntriesRequest)
  446. if err := stream.RecvMsg(m); err != nil {
  447. return err
  448. }
  449. return srv.(SeaweedFilerServer).ListEntries(m, &seaweedFilerListEntriesServer{stream})
  450. }
  451. type SeaweedFiler_ListEntriesServer interface {
  452. Send(*ListEntriesResponse) error
  453. grpc.ServerStream
  454. }
  455. type seaweedFilerListEntriesServer struct {
  456. grpc.ServerStream
  457. }
  458. func (x *seaweedFilerListEntriesServer) Send(m *ListEntriesResponse) error {
  459. return x.ServerStream.SendMsg(m)
  460. }
  461. func _SeaweedFiler_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  462. in := new(CreateEntryRequest)
  463. if err := dec(in); err != nil {
  464. return nil, err
  465. }
  466. if interceptor == nil {
  467. return srv.(SeaweedFilerServer).CreateEntry(ctx, in)
  468. }
  469. info := &grpc.UnaryServerInfo{
  470. Server: srv,
  471. FullMethod: "/filer_pb.SeaweedFiler/CreateEntry",
  472. }
  473. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  474. return srv.(SeaweedFilerServer).CreateEntry(ctx, req.(*CreateEntryRequest))
  475. }
  476. return interceptor(ctx, in, info, handler)
  477. }
  478. func _SeaweedFiler_UpdateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  479. in := new(UpdateEntryRequest)
  480. if err := dec(in); err != nil {
  481. return nil, err
  482. }
  483. if interceptor == nil {
  484. return srv.(SeaweedFilerServer).UpdateEntry(ctx, in)
  485. }
  486. info := &grpc.UnaryServerInfo{
  487. Server: srv,
  488. FullMethod: "/filer_pb.SeaweedFiler/UpdateEntry",
  489. }
  490. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  491. return srv.(SeaweedFilerServer).UpdateEntry(ctx, req.(*UpdateEntryRequest))
  492. }
  493. return interceptor(ctx, in, info, handler)
  494. }
  495. func _SeaweedFiler_AppendToEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  496. in := new(AppendToEntryRequest)
  497. if err := dec(in); err != nil {
  498. return nil, err
  499. }
  500. if interceptor == nil {
  501. return srv.(SeaweedFilerServer).AppendToEntry(ctx, in)
  502. }
  503. info := &grpc.UnaryServerInfo{
  504. Server: srv,
  505. FullMethod: "/filer_pb.SeaweedFiler/AppendToEntry",
  506. }
  507. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  508. return srv.(SeaweedFilerServer).AppendToEntry(ctx, req.(*AppendToEntryRequest))
  509. }
  510. return interceptor(ctx, in, info, handler)
  511. }
  512. func _SeaweedFiler_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  513. in := new(DeleteEntryRequest)
  514. if err := dec(in); err != nil {
  515. return nil, err
  516. }
  517. if interceptor == nil {
  518. return srv.(SeaweedFilerServer).DeleteEntry(ctx, in)
  519. }
  520. info := &grpc.UnaryServerInfo{
  521. Server: srv,
  522. FullMethod: "/filer_pb.SeaweedFiler/DeleteEntry",
  523. }
  524. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  525. return srv.(SeaweedFilerServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
  526. }
  527. return interceptor(ctx, in, info, handler)
  528. }
  529. func _SeaweedFiler_AtomicRenameEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  530. in := new(AtomicRenameEntryRequest)
  531. if err := dec(in); err != nil {
  532. return nil, err
  533. }
  534. if interceptor == nil {
  535. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, in)
  536. }
  537. info := &grpc.UnaryServerInfo{
  538. Server: srv,
  539. FullMethod: "/filer_pb.SeaweedFiler/AtomicRenameEntry",
  540. }
  541. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  542. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, req.(*AtomicRenameEntryRequest))
  543. }
  544. return interceptor(ctx, in, info, handler)
  545. }
  546. func _SeaweedFiler_StreamRenameEntry_Handler(srv interface{}, stream grpc.ServerStream) error {
  547. m := new(StreamRenameEntryRequest)
  548. if err := stream.RecvMsg(m); err != nil {
  549. return err
  550. }
  551. return srv.(SeaweedFilerServer).StreamRenameEntry(m, &seaweedFilerStreamRenameEntryServer{stream})
  552. }
  553. type SeaweedFiler_StreamRenameEntryServer interface {
  554. Send(*StreamRenameEntryResponse) error
  555. grpc.ServerStream
  556. }
  557. type seaweedFilerStreamRenameEntryServer struct {
  558. grpc.ServerStream
  559. }
  560. func (x *seaweedFilerStreamRenameEntryServer) Send(m *StreamRenameEntryResponse) error {
  561. return x.ServerStream.SendMsg(m)
  562. }
  563. func _SeaweedFiler_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  564. in := new(AssignVolumeRequest)
  565. if err := dec(in); err != nil {
  566. return nil, err
  567. }
  568. if interceptor == nil {
  569. return srv.(SeaweedFilerServer).AssignVolume(ctx, in)
  570. }
  571. info := &grpc.UnaryServerInfo{
  572. Server: srv,
  573. FullMethod: "/filer_pb.SeaweedFiler/AssignVolume",
  574. }
  575. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  576. return srv.(SeaweedFilerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  577. }
  578. return interceptor(ctx, in, info, handler)
  579. }
  580. func _SeaweedFiler_LookupVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  581. in := new(LookupVolumeRequest)
  582. if err := dec(in); err != nil {
  583. return nil, err
  584. }
  585. if interceptor == nil {
  586. return srv.(SeaweedFilerServer).LookupVolume(ctx, in)
  587. }
  588. info := &grpc.UnaryServerInfo{
  589. Server: srv,
  590. FullMethod: "/filer_pb.SeaweedFiler/LookupVolume",
  591. }
  592. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  593. return srv.(SeaweedFilerServer).LookupVolume(ctx, req.(*LookupVolumeRequest))
  594. }
  595. return interceptor(ctx, in, info, handler)
  596. }
  597. func _SeaweedFiler_CollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  598. in := new(CollectionListRequest)
  599. if err := dec(in); err != nil {
  600. return nil, err
  601. }
  602. if interceptor == nil {
  603. return srv.(SeaweedFilerServer).CollectionList(ctx, in)
  604. }
  605. info := &grpc.UnaryServerInfo{
  606. Server: srv,
  607. FullMethod: "/filer_pb.SeaweedFiler/CollectionList",
  608. }
  609. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  610. return srv.(SeaweedFilerServer).CollectionList(ctx, req.(*CollectionListRequest))
  611. }
  612. return interceptor(ctx, in, info, handler)
  613. }
  614. func _SeaweedFiler_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  615. in := new(DeleteCollectionRequest)
  616. if err := dec(in); err != nil {
  617. return nil, err
  618. }
  619. if interceptor == nil {
  620. return srv.(SeaweedFilerServer).DeleteCollection(ctx, in)
  621. }
  622. info := &grpc.UnaryServerInfo{
  623. Server: srv,
  624. FullMethod: "/filer_pb.SeaweedFiler/DeleteCollection",
  625. }
  626. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  627. return srv.(SeaweedFilerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  628. }
  629. return interceptor(ctx, in, info, handler)
  630. }
  631. func _SeaweedFiler_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  632. in := new(StatisticsRequest)
  633. if err := dec(in); err != nil {
  634. return nil, err
  635. }
  636. if interceptor == nil {
  637. return srv.(SeaweedFilerServer).Statistics(ctx, in)
  638. }
  639. info := &grpc.UnaryServerInfo{
  640. Server: srv,
  641. FullMethod: "/filer_pb.SeaweedFiler/Statistics",
  642. }
  643. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  644. return srv.(SeaweedFilerServer).Statistics(ctx, req.(*StatisticsRequest))
  645. }
  646. return interceptor(ctx, in, info, handler)
  647. }
  648. func _SeaweedFiler_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  649. in := new(PingRequest)
  650. if err := dec(in); err != nil {
  651. return nil, err
  652. }
  653. if interceptor == nil {
  654. return srv.(SeaweedFilerServer).Ping(ctx, in)
  655. }
  656. info := &grpc.UnaryServerInfo{
  657. Server: srv,
  658. FullMethod: "/filer_pb.SeaweedFiler/Ping",
  659. }
  660. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  661. return srv.(SeaweedFilerServer).Ping(ctx, req.(*PingRequest))
  662. }
  663. return interceptor(ctx, in, info, handler)
  664. }
  665. func _SeaweedFiler_GetFilerConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  666. in := new(GetFilerConfigurationRequest)
  667. if err := dec(in); err != nil {
  668. return nil, err
  669. }
  670. if interceptor == nil {
  671. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, in)
  672. }
  673. info := &grpc.UnaryServerInfo{
  674. Server: srv,
  675. FullMethod: "/filer_pb.SeaweedFiler/GetFilerConfiguration",
  676. }
  677. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  678. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, req.(*GetFilerConfigurationRequest))
  679. }
  680. return interceptor(ctx, in, info, handler)
  681. }
  682. func _SeaweedFiler_SubscribeMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  683. m := new(SubscribeMetadataRequest)
  684. if err := stream.RecvMsg(m); err != nil {
  685. return err
  686. }
  687. return srv.(SeaweedFilerServer).SubscribeMetadata(m, &seaweedFilerSubscribeMetadataServer{stream})
  688. }
  689. type SeaweedFiler_SubscribeMetadataServer interface {
  690. Send(*SubscribeMetadataResponse) error
  691. grpc.ServerStream
  692. }
  693. type seaweedFilerSubscribeMetadataServer struct {
  694. grpc.ServerStream
  695. }
  696. func (x *seaweedFilerSubscribeMetadataServer) Send(m *SubscribeMetadataResponse) error {
  697. return x.ServerStream.SendMsg(m)
  698. }
  699. func _SeaweedFiler_SubscribeLocalMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  700. m := new(SubscribeMetadataRequest)
  701. if err := stream.RecvMsg(m); err != nil {
  702. return err
  703. }
  704. return srv.(SeaweedFilerServer).SubscribeLocalMetadata(m, &seaweedFilerSubscribeLocalMetadataServer{stream})
  705. }
  706. type SeaweedFiler_SubscribeLocalMetadataServer interface {
  707. Send(*SubscribeMetadataResponse) error
  708. grpc.ServerStream
  709. }
  710. type seaweedFilerSubscribeLocalMetadataServer struct {
  711. grpc.ServerStream
  712. }
  713. func (x *seaweedFilerSubscribeLocalMetadataServer) Send(m *SubscribeMetadataResponse) error {
  714. return x.ServerStream.SendMsg(m)
  715. }
  716. func _SeaweedFiler_KeepConnected_Handler(srv interface{}, stream grpc.ServerStream) error {
  717. return srv.(SeaweedFilerServer).KeepConnected(&seaweedFilerKeepConnectedServer{stream})
  718. }
  719. type SeaweedFiler_KeepConnectedServer interface {
  720. Send(*KeepConnectedResponse) error
  721. Recv() (*KeepConnectedRequest, error)
  722. grpc.ServerStream
  723. }
  724. type seaweedFilerKeepConnectedServer struct {
  725. grpc.ServerStream
  726. }
  727. func (x *seaweedFilerKeepConnectedServer) Send(m *KeepConnectedResponse) error {
  728. return x.ServerStream.SendMsg(m)
  729. }
  730. func (x *seaweedFilerKeepConnectedServer) Recv() (*KeepConnectedRequest, error) {
  731. m := new(KeepConnectedRequest)
  732. if err := x.ServerStream.RecvMsg(m); err != nil {
  733. return nil, err
  734. }
  735. return m, nil
  736. }
  737. func _SeaweedFiler_LocateBroker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  738. in := new(LocateBrokerRequest)
  739. if err := dec(in); err != nil {
  740. return nil, err
  741. }
  742. if interceptor == nil {
  743. return srv.(SeaweedFilerServer).LocateBroker(ctx, in)
  744. }
  745. info := &grpc.UnaryServerInfo{
  746. Server: srv,
  747. FullMethod: "/filer_pb.SeaweedFiler/LocateBroker",
  748. }
  749. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  750. return srv.(SeaweedFilerServer).LocateBroker(ctx, req.(*LocateBrokerRequest))
  751. }
  752. return interceptor(ctx, in, info, handler)
  753. }
  754. func _SeaweedFiler_KvGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  755. in := new(KvGetRequest)
  756. if err := dec(in); err != nil {
  757. return nil, err
  758. }
  759. if interceptor == nil {
  760. return srv.(SeaweedFilerServer).KvGet(ctx, in)
  761. }
  762. info := &grpc.UnaryServerInfo{
  763. Server: srv,
  764. FullMethod: "/filer_pb.SeaweedFiler/KvGet",
  765. }
  766. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  767. return srv.(SeaweedFilerServer).KvGet(ctx, req.(*KvGetRequest))
  768. }
  769. return interceptor(ctx, in, info, handler)
  770. }
  771. func _SeaweedFiler_KvPut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  772. in := new(KvPutRequest)
  773. if err := dec(in); err != nil {
  774. return nil, err
  775. }
  776. if interceptor == nil {
  777. return srv.(SeaweedFilerServer).KvPut(ctx, in)
  778. }
  779. info := &grpc.UnaryServerInfo{
  780. Server: srv,
  781. FullMethod: "/filer_pb.SeaweedFiler/KvPut",
  782. }
  783. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  784. return srv.(SeaweedFilerServer).KvPut(ctx, req.(*KvPutRequest))
  785. }
  786. return interceptor(ctx, in, info, handler)
  787. }
  788. func _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  789. in := new(CacheRemoteObjectToLocalClusterRequest)
  790. if err := dec(in); err != nil {
  791. return nil, err
  792. }
  793. if interceptor == nil {
  794. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, in)
  795. }
  796. info := &grpc.UnaryServerInfo{
  797. Server: srv,
  798. FullMethod: "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster",
  799. }
  800. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  801. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, req.(*CacheRemoteObjectToLocalClusterRequest))
  802. }
  803. return interceptor(ctx, in, info, handler)
  804. }
  805. // SeaweedFiler_ServiceDesc is the grpc.ServiceDesc for SeaweedFiler service.
  806. // It's only intended for direct use with grpc.RegisterService,
  807. // and not to be introspected or modified (even as a copy)
  808. var SeaweedFiler_ServiceDesc = grpc.ServiceDesc{
  809. ServiceName: "filer_pb.SeaweedFiler",
  810. HandlerType: (*SeaweedFilerServer)(nil),
  811. Methods: []grpc.MethodDesc{
  812. {
  813. MethodName: "LookupDirectoryEntry",
  814. Handler: _SeaweedFiler_LookupDirectoryEntry_Handler,
  815. },
  816. {
  817. MethodName: "CreateEntry",
  818. Handler: _SeaweedFiler_CreateEntry_Handler,
  819. },
  820. {
  821. MethodName: "UpdateEntry",
  822. Handler: _SeaweedFiler_UpdateEntry_Handler,
  823. },
  824. {
  825. MethodName: "AppendToEntry",
  826. Handler: _SeaweedFiler_AppendToEntry_Handler,
  827. },
  828. {
  829. MethodName: "DeleteEntry",
  830. Handler: _SeaweedFiler_DeleteEntry_Handler,
  831. },
  832. {
  833. MethodName: "AtomicRenameEntry",
  834. Handler: _SeaweedFiler_AtomicRenameEntry_Handler,
  835. },
  836. {
  837. MethodName: "AssignVolume",
  838. Handler: _SeaweedFiler_AssignVolume_Handler,
  839. },
  840. {
  841. MethodName: "LookupVolume",
  842. Handler: _SeaweedFiler_LookupVolume_Handler,
  843. },
  844. {
  845. MethodName: "CollectionList",
  846. Handler: _SeaweedFiler_CollectionList_Handler,
  847. },
  848. {
  849. MethodName: "DeleteCollection",
  850. Handler: _SeaweedFiler_DeleteCollection_Handler,
  851. },
  852. {
  853. MethodName: "Statistics",
  854. Handler: _SeaweedFiler_Statistics_Handler,
  855. },
  856. {
  857. MethodName: "Ping",
  858. Handler: _SeaweedFiler_Ping_Handler,
  859. },
  860. {
  861. MethodName: "GetFilerConfiguration",
  862. Handler: _SeaweedFiler_GetFilerConfiguration_Handler,
  863. },
  864. {
  865. MethodName: "LocateBroker",
  866. Handler: _SeaweedFiler_LocateBroker_Handler,
  867. },
  868. {
  869. MethodName: "KvGet",
  870. Handler: _SeaweedFiler_KvGet_Handler,
  871. },
  872. {
  873. MethodName: "KvPut",
  874. Handler: _SeaweedFiler_KvPut_Handler,
  875. },
  876. {
  877. MethodName: "CacheRemoteObjectToLocalCluster",
  878. Handler: _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler,
  879. },
  880. },
  881. Streams: []grpc.StreamDesc{
  882. {
  883. StreamName: "ListEntries",
  884. Handler: _SeaweedFiler_ListEntries_Handler,
  885. ServerStreams: true,
  886. },
  887. {
  888. StreamName: "StreamRenameEntry",
  889. Handler: _SeaweedFiler_StreamRenameEntry_Handler,
  890. ServerStreams: true,
  891. },
  892. {
  893. StreamName: "SubscribeMetadata",
  894. Handler: _SeaweedFiler_SubscribeMetadata_Handler,
  895. ServerStreams: true,
  896. },
  897. {
  898. StreamName: "SubscribeLocalMetadata",
  899. Handler: _SeaweedFiler_SubscribeLocalMetadata_Handler,
  900. ServerStreams: true,
  901. },
  902. {
  903. StreamName: "KeepConnected",
  904. Handler: _SeaweedFiler_KeepConnected_Handler,
  905. ServerStreams: true,
  906. ClientStreams: true,
  907. },
  908. },
  909. Metadata: "filer.proto",
  910. }