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.

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