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.

1274 lines
49 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: volume_server.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package volume_server_pb is a generated protocol buffer package.
  6. It is generated from these files:
  7. volume_server.proto
  8. It has these top-level messages:
  9. BatchDeleteRequest
  10. BatchDeleteResponse
  11. DeleteResult
  12. Empty
  13. VacuumVolumeCheckRequest
  14. VacuumVolumeCheckResponse
  15. VacuumVolumeCompactRequest
  16. VacuumVolumeCompactResponse
  17. VacuumVolumeCommitRequest
  18. VacuumVolumeCommitResponse
  19. VacuumVolumeCleanupRequest
  20. VacuumVolumeCleanupResponse
  21. DeleteCollectionRequest
  22. DeleteCollectionResponse
  23. AssignVolumeRequest
  24. AssignVolumeResponse
  25. VolumeSyncStatusRequest
  26. VolumeSyncStatusResponse
  27. VolumeSyncIndexRequest
  28. VolumeSyncIndexResponse
  29. VolumeSyncDataRequest
  30. VolumeSyncDataResponse
  31. VolumeMountRequest
  32. VolumeMountResponse
  33. VolumeUnmountRequest
  34. VolumeUnmountResponse
  35. VolumeUiPageRequest
  36. VolumeUiPageResponse
  37. DiskStatus
  38. MemStatus
  39. */
  40. package volume_server_pb
  41. import proto "github.com/golang/protobuf/proto"
  42. import fmt "fmt"
  43. import math "math"
  44. import (
  45. context "golang.org/x/net/context"
  46. grpc "google.golang.org/grpc"
  47. )
  48. // Reference imports to suppress errors if they are not otherwise used.
  49. var _ = proto.Marshal
  50. var _ = fmt.Errorf
  51. var _ = math.Inf
  52. // This is a compile-time assertion to ensure that this generated file
  53. // is compatible with the proto package it is being compiled against.
  54. // A compilation error at this line likely means your copy of the
  55. // proto package needs to be updated.
  56. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  57. type BatchDeleteRequest struct {
  58. FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
  59. }
  60. func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
  61. func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
  62. func (*BatchDeleteRequest) ProtoMessage() {}
  63. func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  64. func (m *BatchDeleteRequest) GetFileIds() []string {
  65. if m != nil {
  66. return m.FileIds
  67. }
  68. return nil
  69. }
  70. type BatchDeleteResponse struct {
  71. Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
  72. }
  73. func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
  74. func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
  75. func (*BatchDeleteResponse) ProtoMessage() {}
  76. func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  77. func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
  78. if m != nil {
  79. return m.Results
  80. }
  81. return nil
  82. }
  83. type DeleteResult struct {
  84. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  85. Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
  86. Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
  87. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  88. }
  89. func (m *DeleteResult) Reset() { *m = DeleteResult{} }
  90. func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
  91. func (*DeleteResult) ProtoMessage() {}
  92. func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  93. func (m *DeleteResult) GetFileId() string {
  94. if m != nil {
  95. return m.FileId
  96. }
  97. return ""
  98. }
  99. func (m *DeleteResult) GetStatus() int32 {
  100. if m != nil {
  101. return m.Status
  102. }
  103. return 0
  104. }
  105. func (m *DeleteResult) GetError() string {
  106. if m != nil {
  107. return m.Error
  108. }
  109. return ""
  110. }
  111. func (m *DeleteResult) GetSize() uint32 {
  112. if m != nil {
  113. return m.Size
  114. }
  115. return 0
  116. }
  117. type Empty struct {
  118. }
  119. func (m *Empty) Reset() { *m = Empty{} }
  120. func (m *Empty) String() string { return proto.CompactTextString(m) }
  121. func (*Empty) ProtoMessage() {}
  122. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  123. type VacuumVolumeCheckRequest struct {
  124. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  125. }
  126. func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} }
  127. func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) }
  128. func (*VacuumVolumeCheckRequest) ProtoMessage() {}
  129. func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  130. func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 {
  131. if m != nil {
  132. return m.VolumdId
  133. }
  134. return 0
  135. }
  136. type VacuumVolumeCheckResponse struct {
  137. GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"`
  138. }
  139. func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} }
  140. func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) }
  141. func (*VacuumVolumeCheckResponse) ProtoMessage() {}
  142. func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  143. func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 {
  144. if m != nil {
  145. return m.GarbageRatio
  146. }
  147. return 0
  148. }
  149. type VacuumVolumeCompactRequest struct {
  150. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  151. Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"`
  152. }
  153. func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} }
  154. func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) }
  155. func (*VacuumVolumeCompactRequest) ProtoMessage() {}
  156. func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  157. func (m *VacuumVolumeCompactRequest) GetVolumdId() uint32 {
  158. if m != nil {
  159. return m.VolumdId
  160. }
  161. return 0
  162. }
  163. func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 {
  164. if m != nil {
  165. return m.Preallocate
  166. }
  167. return 0
  168. }
  169. type VacuumVolumeCompactResponse struct {
  170. }
  171. func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} }
  172. func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) }
  173. func (*VacuumVolumeCompactResponse) ProtoMessage() {}
  174. func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  175. type VacuumVolumeCommitRequest struct {
  176. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  177. }
  178. func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} }
  179. func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) }
  180. func (*VacuumVolumeCommitRequest) ProtoMessage() {}
  181. func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  182. func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 {
  183. if m != nil {
  184. return m.VolumdId
  185. }
  186. return 0
  187. }
  188. type VacuumVolumeCommitResponse struct {
  189. }
  190. func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} }
  191. func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) }
  192. func (*VacuumVolumeCommitResponse) ProtoMessage() {}
  193. func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  194. type VacuumVolumeCleanupRequest struct {
  195. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  196. }
  197. func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} }
  198. func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) }
  199. func (*VacuumVolumeCleanupRequest) ProtoMessage() {}
  200. func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  201. func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 {
  202. if m != nil {
  203. return m.VolumdId
  204. }
  205. return 0
  206. }
  207. type VacuumVolumeCleanupResponse struct {
  208. }
  209. func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} }
  210. func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) }
  211. func (*VacuumVolumeCleanupResponse) ProtoMessage() {}
  212. func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  213. type DeleteCollectionRequest struct {
  214. Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
  215. }
  216. func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} }
  217. func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) }
  218. func (*DeleteCollectionRequest) ProtoMessage() {}
  219. func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  220. func (m *DeleteCollectionRequest) GetCollection() string {
  221. if m != nil {
  222. return m.Collection
  223. }
  224. return ""
  225. }
  226. type DeleteCollectionResponse struct {
  227. }
  228. func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} }
  229. func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) }
  230. func (*DeleteCollectionResponse) ProtoMessage() {}
  231. func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  232. type AssignVolumeRequest struct {
  233. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  234. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  235. Preallocate int64 `protobuf:"varint,3,opt,name=preallocate" json:"preallocate,omitempty"`
  236. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  237. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  238. }
  239. func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  240. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  241. func (*AssignVolumeRequest) ProtoMessage() {}
  242. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  243. func (m *AssignVolumeRequest) GetVolumdId() uint32 {
  244. if m != nil {
  245. return m.VolumdId
  246. }
  247. return 0
  248. }
  249. func (m *AssignVolumeRequest) GetCollection() string {
  250. if m != nil {
  251. return m.Collection
  252. }
  253. return ""
  254. }
  255. func (m *AssignVolumeRequest) GetPreallocate() int64 {
  256. if m != nil {
  257. return m.Preallocate
  258. }
  259. return 0
  260. }
  261. func (m *AssignVolumeRequest) GetReplication() string {
  262. if m != nil {
  263. return m.Replication
  264. }
  265. return ""
  266. }
  267. func (m *AssignVolumeRequest) GetTtl() string {
  268. if m != nil {
  269. return m.Ttl
  270. }
  271. return ""
  272. }
  273. type AssignVolumeResponse struct {
  274. }
  275. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  276. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  277. func (*AssignVolumeResponse) ProtoMessage() {}
  278. func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  279. type VolumeSyncStatusRequest struct {
  280. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  281. }
  282. func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} }
  283. func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) }
  284. func (*VolumeSyncStatusRequest) ProtoMessage() {}
  285. func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  286. func (m *VolumeSyncStatusRequest) GetVolumdId() uint32 {
  287. if m != nil {
  288. return m.VolumdId
  289. }
  290. return 0
  291. }
  292. type VolumeSyncStatusResponse struct {
  293. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  294. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  295. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  296. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  297. TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset" json:"tail_offset,omitempty"`
  298. CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision" json:"compact_revision,omitempty"`
  299. IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  300. }
  301. func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} }
  302. func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) }
  303. func (*VolumeSyncStatusResponse) ProtoMessage() {}
  304. func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  305. func (m *VolumeSyncStatusResponse) GetVolumdId() uint32 {
  306. if m != nil {
  307. return m.VolumdId
  308. }
  309. return 0
  310. }
  311. func (m *VolumeSyncStatusResponse) GetCollection() string {
  312. if m != nil {
  313. return m.Collection
  314. }
  315. return ""
  316. }
  317. func (m *VolumeSyncStatusResponse) GetReplication() string {
  318. if m != nil {
  319. return m.Replication
  320. }
  321. return ""
  322. }
  323. func (m *VolumeSyncStatusResponse) GetTtl() string {
  324. if m != nil {
  325. return m.Ttl
  326. }
  327. return ""
  328. }
  329. func (m *VolumeSyncStatusResponse) GetTailOffset() uint64 {
  330. if m != nil {
  331. return m.TailOffset
  332. }
  333. return 0
  334. }
  335. func (m *VolumeSyncStatusResponse) GetCompactRevision() uint32 {
  336. if m != nil {
  337. return m.CompactRevision
  338. }
  339. return 0
  340. }
  341. func (m *VolumeSyncStatusResponse) GetIdxFileSize() uint64 {
  342. if m != nil {
  343. return m.IdxFileSize
  344. }
  345. return 0
  346. }
  347. type VolumeSyncIndexRequest struct {
  348. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  349. }
  350. func (m *VolumeSyncIndexRequest) Reset() { *m = VolumeSyncIndexRequest{} }
  351. func (m *VolumeSyncIndexRequest) String() string { return proto.CompactTextString(m) }
  352. func (*VolumeSyncIndexRequest) ProtoMessage() {}
  353. func (*VolumeSyncIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  354. func (m *VolumeSyncIndexRequest) GetVolumdId() uint32 {
  355. if m != nil {
  356. return m.VolumdId
  357. }
  358. return 0
  359. }
  360. type VolumeSyncIndexResponse struct {
  361. IndexFileContent []byte `protobuf:"bytes,1,opt,name=index_file_content,json=indexFileContent,proto3" json:"index_file_content,omitempty"`
  362. }
  363. func (m *VolumeSyncIndexResponse) Reset() { *m = VolumeSyncIndexResponse{} }
  364. func (m *VolumeSyncIndexResponse) String() string { return proto.CompactTextString(m) }
  365. func (*VolumeSyncIndexResponse) ProtoMessage() {}
  366. func (*VolumeSyncIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  367. func (m *VolumeSyncIndexResponse) GetIndexFileContent() []byte {
  368. if m != nil {
  369. return m.IndexFileContent
  370. }
  371. return nil
  372. }
  373. type VolumeSyncDataRequest struct {
  374. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  375. Revision uint32 `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"`
  376. Offset uint32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
  377. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  378. NeedleId string `protobuf:"bytes,5,opt,name=needle_id,json=needleId" json:"needle_id,omitempty"`
  379. }
  380. func (m *VolumeSyncDataRequest) Reset() { *m = VolumeSyncDataRequest{} }
  381. func (m *VolumeSyncDataRequest) String() string { return proto.CompactTextString(m) }
  382. func (*VolumeSyncDataRequest) ProtoMessage() {}
  383. func (*VolumeSyncDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  384. func (m *VolumeSyncDataRequest) GetVolumdId() uint32 {
  385. if m != nil {
  386. return m.VolumdId
  387. }
  388. return 0
  389. }
  390. func (m *VolumeSyncDataRequest) GetRevision() uint32 {
  391. if m != nil {
  392. return m.Revision
  393. }
  394. return 0
  395. }
  396. func (m *VolumeSyncDataRequest) GetOffset() uint32 {
  397. if m != nil {
  398. return m.Offset
  399. }
  400. return 0
  401. }
  402. func (m *VolumeSyncDataRequest) GetSize() uint32 {
  403. if m != nil {
  404. return m.Size
  405. }
  406. return 0
  407. }
  408. func (m *VolumeSyncDataRequest) GetNeedleId() string {
  409. if m != nil {
  410. return m.NeedleId
  411. }
  412. return ""
  413. }
  414. type VolumeSyncDataResponse struct {
  415. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  416. }
  417. func (m *VolumeSyncDataResponse) Reset() { *m = VolumeSyncDataResponse{} }
  418. func (m *VolumeSyncDataResponse) String() string { return proto.CompactTextString(m) }
  419. func (*VolumeSyncDataResponse) ProtoMessage() {}
  420. func (*VolumeSyncDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  421. func (m *VolumeSyncDataResponse) GetFileContent() []byte {
  422. if m != nil {
  423. return m.FileContent
  424. }
  425. return nil
  426. }
  427. type VolumeMountRequest struct {
  428. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  429. }
  430. func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} }
  431. func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) }
  432. func (*VolumeMountRequest) ProtoMessage() {}
  433. func (*VolumeMountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  434. func (m *VolumeMountRequest) GetVolumdId() uint32 {
  435. if m != nil {
  436. return m.VolumdId
  437. }
  438. return 0
  439. }
  440. type VolumeMountResponse struct {
  441. }
  442. func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} }
  443. func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) }
  444. func (*VolumeMountResponse) ProtoMessage() {}
  445. func (*VolumeMountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  446. type VolumeUnmountRequest struct {
  447. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  448. }
  449. func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} }
  450. func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) }
  451. func (*VolumeUnmountRequest) ProtoMessage() {}
  452. func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  453. func (m *VolumeUnmountRequest) GetVolumdId() uint32 {
  454. if m != nil {
  455. return m.VolumdId
  456. }
  457. return 0
  458. }
  459. type VolumeUnmountResponse struct {
  460. }
  461. func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} }
  462. func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) }
  463. func (*VolumeUnmountResponse) ProtoMessage() {}
  464. func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  465. type VolumeUiPageRequest struct {
  466. }
  467. func (m *VolumeUiPageRequest) Reset() { *m = VolumeUiPageRequest{} }
  468. func (m *VolumeUiPageRequest) String() string { return proto.CompactTextString(m) }
  469. func (*VolumeUiPageRequest) ProtoMessage() {}
  470. func (*VolumeUiPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
  471. type VolumeUiPageResponse struct {
  472. }
  473. func (m *VolumeUiPageResponse) Reset() { *m = VolumeUiPageResponse{} }
  474. func (m *VolumeUiPageResponse) String() string { return proto.CompactTextString(m) }
  475. func (*VolumeUiPageResponse) ProtoMessage() {}
  476. func (*VolumeUiPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  477. type DiskStatus struct {
  478. Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
  479. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  480. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  481. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  482. }
  483. func (m *DiskStatus) Reset() { *m = DiskStatus{} }
  484. func (m *DiskStatus) String() string { return proto.CompactTextString(m) }
  485. func (*DiskStatus) ProtoMessage() {}
  486. func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  487. func (m *DiskStatus) GetDir() string {
  488. if m != nil {
  489. return m.Dir
  490. }
  491. return ""
  492. }
  493. func (m *DiskStatus) GetAll() uint64 {
  494. if m != nil {
  495. return m.All
  496. }
  497. return 0
  498. }
  499. func (m *DiskStatus) GetUsed() uint64 {
  500. if m != nil {
  501. return m.Used
  502. }
  503. return 0
  504. }
  505. func (m *DiskStatus) GetFree() uint64 {
  506. if m != nil {
  507. return m.Free
  508. }
  509. return 0
  510. }
  511. type MemStatus struct {
  512. Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
  513. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  514. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  515. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  516. Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"`
  517. Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"`
  518. Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"`
  519. }
  520. func (m *MemStatus) Reset() { *m = MemStatus{} }
  521. func (m *MemStatus) String() string { return proto.CompactTextString(m) }
  522. func (*MemStatus) ProtoMessage() {}
  523. func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
  524. func (m *MemStatus) GetGoroutines() int32 {
  525. if m != nil {
  526. return m.Goroutines
  527. }
  528. return 0
  529. }
  530. func (m *MemStatus) GetAll() uint64 {
  531. if m != nil {
  532. return m.All
  533. }
  534. return 0
  535. }
  536. func (m *MemStatus) GetUsed() uint64 {
  537. if m != nil {
  538. return m.Used
  539. }
  540. return 0
  541. }
  542. func (m *MemStatus) GetFree() uint64 {
  543. if m != nil {
  544. return m.Free
  545. }
  546. return 0
  547. }
  548. func (m *MemStatus) GetSelf() uint64 {
  549. if m != nil {
  550. return m.Self
  551. }
  552. return 0
  553. }
  554. func (m *MemStatus) GetHeap() uint64 {
  555. if m != nil {
  556. return m.Heap
  557. }
  558. return 0
  559. }
  560. func (m *MemStatus) GetStack() uint64 {
  561. if m != nil {
  562. return m.Stack
  563. }
  564. return 0
  565. }
  566. func init() {
  567. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  568. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  569. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  570. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  571. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  572. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  573. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  574. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  575. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  576. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  577. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  578. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  579. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  580. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  581. proto.RegisterType((*AssignVolumeRequest)(nil), "volume_server_pb.AssignVolumeRequest")
  582. proto.RegisterType((*AssignVolumeResponse)(nil), "volume_server_pb.AssignVolumeResponse")
  583. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  584. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  585. proto.RegisterType((*VolumeSyncIndexRequest)(nil), "volume_server_pb.VolumeSyncIndexRequest")
  586. proto.RegisterType((*VolumeSyncIndexResponse)(nil), "volume_server_pb.VolumeSyncIndexResponse")
  587. proto.RegisterType((*VolumeSyncDataRequest)(nil), "volume_server_pb.VolumeSyncDataRequest")
  588. proto.RegisterType((*VolumeSyncDataResponse)(nil), "volume_server_pb.VolumeSyncDataResponse")
  589. proto.RegisterType((*VolumeMountRequest)(nil), "volume_server_pb.VolumeMountRequest")
  590. proto.RegisterType((*VolumeMountResponse)(nil), "volume_server_pb.VolumeMountResponse")
  591. proto.RegisterType((*VolumeUnmountRequest)(nil), "volume_server_pb.VolumeUnmountRequest")
  592. proto.RegisterType((*VolumeUnmountResponse)(nil), "volume_server_pb.VolumeUnmountResponse")
  593. proto.RegisterType((*VolumeUiPageRequest)(nil), "volume_server_pb.VolumeUiPageRequest")
  594. proto.RegisterType((*VolumeUiPageResponse)(nil), "volume_server_pb.VolumeUiPageResponse")
  595. proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")
  596. proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")
  597. }
  598. // Reference imports to suppress errors if they are not otherwise used.
  599. var _ context.Context
  600. var _ grpc.ClientConn
  601. // This is a compile-time assertion to ensure that this generated file
  602. // is compatible with the grpc package it is being compiled against.
  603. const _ = grpc.SupportPackageIsVersion4
  604. // Client API for VolumeServer service
  605. type VolumeServerClient interface {
  606. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  607. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  608. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  609. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  610. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  611. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  612. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  613. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  614. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  615. VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncIndexClient, error)
  616. VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncDataClient, error)
  617. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  618. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  619. }
  620. type volumeServerClient struct {
  621. cc *grpc.ClientConn
  622. }
  623. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  624. return &volumeServerClient{cc}
  625. }
  626. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  627. out := new(BatchDeleteResponse)
  628. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  629. if err != nil {
  630. return nil, err
  631. }
  632. return out, nil
  633. }
  634. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  635. out := new(VacuumVolumeCheckResponse)
  636. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  637. if err != nil {
  638. return nil, err
  639. }
  640. return out, nil
  641. }
  642. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  643. out := new(VacuumVolumeCompactResponse)
  644. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  645. if err != nil {
  646. return nil, err
  647. }
  648. return out, nil
  649. }
  650. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  651. out := new(VacuumVolumeCommitResponse)
  652. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  653. if err != nil {
  654. return nil, err
  655. }
  656. return out, nil
  657. }
  658. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  659. out := new(VacuumVolumeCleanupResponse)
  660. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  661. if err != nil {
  662. return nil, err
  663. }
  664. return out, nil
  665. }
  666. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  667. out := new(DeleteCollectionResponse)
  668. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  669. if err != nil {
  670. return nil, err
  671. }
  672. return out, nil
  673. }
  674. func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  675. out := new(AssignVolumeResponse)
  676. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, c.cc, opts...)
  677. if err != nil {
  678. return nil, err
  679. }
  680. return out, nil
  681. }
  682. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  683. out := new(VolumeSyncStatusResponse)
  684. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  685. if err != nil {
  686. return nil, err
  687. }
  688. return out, nil
  689. }
  690. func (c *volumeServerClient) VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncIndexClient, error) {
  691. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[0], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncIndex", opts...)
  692. if err != nil {
  693. return nil, err
  694. }
  695. x := &volumeServerVolumeSyncIndexClient{stream}
  696. if err := x.ClientStream.SendMsg(in); err != nil {
  697. return nil, err
  698. }
  699. if err := x.ClientStream.CloseSend(); err != nil {
  700. return nil, err
  701. }
  702. return x, nil
  703. }
  704. type VolumeServer_VolumeSyncIndexClient interface {
  705. Recv() (*VolumeSyncIndexResponse, error)
  706. grpc.ClientStream
  707. }
  708. type volumeServerVolumeSyncIndexClient struct {
  709. grpc.ClientStream
  710. }
  711. func (x *volumeServerVolumeSyncIndexClient) Recv() (*VolumeSyncIndexResponse, error) {
  712. m := new(VolumeSyncIndexResponse)
  713. if err := x.ClientStream.RecvMsg(m); err != nil {
  714. return nil, err
  715. }
  716. return m, nil
  717. }
  718. func (c *volumeServerClient) VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncDataClient, error) {
  719. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[1], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncData", opts...)
  720. if err != nil {
  721. return nil, err
  722. }
  723. x := &volumeServerVolumeSyncDataClient{stream}
  724. if err := x.ClientStream.SendMsg(in); err != nil {
  725. return nil, err
  726. }
  727. if err := x.ClientStream.CloseSend(); err != nil {
  728. return nil, err
  729. }
  730. return x, nil
  731. }
  732. type VolumeServer_VolumeSyncDataClient interface {
  733. Recv() (*VolumeSyncDataResponse, error)
  734. grpc.ClientStream
  735. }
  736. type volumeServerVolumeSyncDataClient struct {
  737. grpc.ClientStream
  738. }
  739. func (x *volumeServerVolumeSyncDataClient) Recv() (*VolumeSyncDataResponse, error) {
  740. m := new(VolumeSyncDataResponse)
  741. if err := x.ClientStream.RecvMsg(m); err != nil {
  742. return nil, err
  743. }
  744. return m, nil
  745. }
  746. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  747. out := new(VolumeMountResponse)
  748. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...)
  749. if err != nil {
  750. return nil, err
  751. }
  752. return out, nil
  753. }
  754. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  755. out := new(VolumeUnmountResponse)
  756. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...)
  757. if err != nil {
  758. return nil, err
  759. }
  760. return out, nil
  761. }
  762. // Server API for VolumeServer service
  763. type VolumeServerServer interface {
  764. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  765. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  766. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  767. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  768. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  769. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  770. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  771. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  772. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  773. VolumeSyncIndex(*VolumeSyncIndexRequest, VolumeServer_VolumeSyncIndexServer) error
  774. VolumeSyncData(*VolumeSyncDataRequest, VolumeServer_VolumeSyncDataServer) error
  775. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  776. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  777. }
  778. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  779. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  780. }
  781. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  782. in := new(BatchDeleteRequest)
  783. if err := dec(in); err != nil {
  784. return nil, err
  785. }
  786. if interceptor == nil {
  787. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  788. }
  789. info := &grpc.UnaryServerInfo{
  790. Server: srv,
  791. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  792. }
  793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  794. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  795. }
  796. return interceptor(ctx, in, info, handler)
  797. }
  798. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  799. in := new(VacuumVolumeCheckRequest)
  800. if err := dec(in); err != nil {
  801. return nil, err
  802. }
  803. if interceptor == nil {
  804. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  805. }
  806. info := &grpc.UnaryServerInfo{
  807. Server: srv,
  808. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  809. }
  810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  811. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  812. }
  813. return interceptor(ctx, in, info, handler)
  814. }
  815. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  816. in := new(VacuumVolumeCompactRequest)
  817. if err := dec(in); err != nil {
  818. return nil, err
  819. }
  820. if interceptor == nil {
  821. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  822. }
  823. info := &grpc.UnaryServerInfo{
  824. Server: srv,
  825. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  826. }
  827. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  828. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  829. }
  830. return interceptor(ctx, in, info, handler)
  831. }
  832. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  833. in := new(VacuumVolumeCommitRequest)
  834. if err := dec(in); err != nil {
  835. return nil, err
  836. }
  837. if interceptor == nil {
  838. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  839. }
  840. info := &grpc.UnaryServerInfo{
  841. Server: srv,
  842. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  843. }
  844. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  845. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  846. }
  847. return interceptor(ctx, in, info, handler)
  848. }
  849. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  850. in := new(VacuumVolumeCleanupRequest)
  851. if err := dec(in); err != nil {
  852. return nil, err
  853. }
  854. if interceptor == nil {
  855. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  856. }
  857. info := &grpc.UnaryServerInfo{
  858. Server: srv,
  859. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  860. }
  861. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  862. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  863. }
  864. return interceptor(ctx, in, info, handler)
  865. }
  866. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  867. in := new(DeleteCollectionRequest)
  868. if err := dec(in); err != nil {
  869. return nil, err
  870. }
  871. if interceptor == nil {
  872. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  873. }
  874. info := &grpc.UnaryServerInfo{
  875. Server: srv,
  876. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  877. }
  878. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  879. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  880. }
  881. return interceptor(ctx, in, info, handler)
  882. }
  883. func _VolumeServer_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  884. in := new(AssignVolumeRequest)
  885. if err := dec(in); err != nil {
  886. return nil, err
  887. }
  888. if interceptor == nil {
  889. return srv.(VolumeServerServer).AssignVolume(ctx, in)
  890. }
  891. info := &grpc.UnaryServerInfo{
  892. Server: srv,
  893. FullMethod: "/volume_server_pb.VolumeServer/AssignVolume",
  894. }
  895. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  896. return srv.(VolumeServerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  897. }
  898. return interceptor(ctx, in, info, handler)
  899. }
  900. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  901. in := new(VolumeSyncStatusRequest)
  902. if err := dec(in); err != nil {
  903. return nil, err
  904. }
  905. if interceptor == nil {
  906. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  907. }
  908. info := &grpc.UnaryServerInfo{
  909. Server: srv,
  910. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  911. }
  912. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  913. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  914. }
  915. return interceptor(ctx, in, info, handler)
  916. }
  917. func _VolumeServer_VolumeSyncIndex_Handler(srv interface{}, stream grpc.ServerStream) error {
  918. m := new(VolumeSyncIndexRequest)
  919. if err := stream.RecvMsg(m); err != nil {
  920. return err
  921. }
  922. return srv.(VolumeServerServer).VolumeSyncIndex(m, &volumeServerVolumeSyncIndexServer{stream})
  923. }
  924. type VolumeServer_VolumeSyncIndexServer interface {
  925. Send(*VolumeSyncIndexResponse) error
  926. grpc.ServerStream
  927. }
  928. type volumeServerVolumeSyncIndexServer struct {
  929. grpc.ServerStream
  930. }
  931. func (x *volumeServerVolumeSyncIndexServer) Send(m *VolumeSyncIndexResponse) error {
  932. return x.ServerStream.SendMsg(m)
  933. }
  934. func _VolumeServer_VolumeSyncData_Handler(srv interface{}, stream grpc.ServerStream) error {
  935. m := new(VolumeSyncDataRequest)
  936. if err := stream.RecvMsg(m); err != nil {
  937. return err
  938. }
  939. return srv.(VolumeServerServer).VolumeSyncData(m, &volumeServerVolumeSyncDataServer{stream})
  940. }
  941. type VolumeServer_VolumeSyncDataServer interface {
  942. Send(*VolumeSyncDataResponse) error
  943. grpc.ServerStream
  944. }
  945. type volumeServerVolumeSyncDataServer struct {
  946. grpc.ServerStream
  947. }
  948. func (x *volumeServerVolumeSyncDataServer) Send(m *VolumeSyncDataResponse) error {
  949. return x.ServerStream.SendMsg(m)
  950. }
  951. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  952. in := new(VolumeMountRequest)
  953. if err := dec(in); err != nil {
  954. return nil, err
  955. }
  956. if interceptor == nil {
  957. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  958. }
  959. info := &grpc.UnaryServerInfo{
  960. Server: srv,
  961. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  962. }
  963. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  964. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  965. }
  966. return interceptor(ctx, in, info, handler)
  967. }
  968. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  969. in := new(VolumeUnmountRequest)
  970. if err := dec(in); err != nil {
  971. return nil, err
  972. }
  973. if interceptor == nil {
  974. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  975. }
  976. info := &grpc.UnaryServerInfo{
  977. Server: srv,
  978. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  979. }
  980. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  981. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  982. }
  983. return interceptor(ctx, in, info, handler)
  984. }
  985. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  986. ServiceName: "volume_server_pb.VolumeServer",
  987. HandlerType: (*VolumeServerServer)(nil),
  988. Methods: []grpc.MethodDesc{
  989. {
  990. MethodName: "BatchDelete",
  991. Handler: _VolumeServer_BatchDelete_Handler,
  992. },
  993. {
  994. MethodName: "VacuumVolumeCheck",
  995. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  996. },
  997. {
  998. MethodName: "VacuumVolumeCompact",
  999. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  1000. },
  1001. {
  1002. MethodName: "VacuumVolumeCommit",
  1003. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  1004. },
  1005. {
  1006. MethodName: "VacuumVolumeCleanup",
  1007. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  1008. },
  1009. {
  1010. MethodName: "DeleteCollection",
  1011. Handler: _VolumeServer_DeleteCollection_Handler,
  1012. },
  1013. {
  1014. MethodName: "AssignVolume",
  1015. Handler: _VolumeServer_AssignVolume_Handler,
  1016. },
  1017. {
  1018. MethodName: "VolumeSyncStatus",
  1019. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  1020. },
  1021. {
  1022. MethodName: "VolumeMount",
  1023. Handler: _VolumeServer_VolumeMount_Handler,
  1024. },
  1025. {
  1026. MethodName: "VolumeUnmount",
  1027. Handler: _VolumeServer_VolumeUnmount_Handler,
  1028. },
  1029. },
  1030. Streams: []grpc.StreamDesc{
  1031. {
  1032. StreamName: "VolumeSyncIndex",
  1033. Handler: _VolumeServer_VolumeSyncIndex_Handler,
  1034. ServerStreams: true,
  1035. },
  1036. {
  1037. StreamName: "VolumeSyncData",
  1038. Handler: _VolumeServer_VolumeSyncData_Handler,
  1039. ServerStreams: true,
  1040. },
  1041. },
  1042. Metadata: "volume_server.proto",
  1043. }
  1044. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  1045. var fileDescriptor0 = []byte{
  1046. // 1015 bytes of a gzipped FileDescriptorProto
  1047. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x57, 0x5f, 0x73, 0xdb, 0x44,
  1048. 0x10, 0x8f, 0x62, 0x3b, 0x76, 0xd6, 0x36, 0x35, 0xe7, 0x34, 0x51, 0x55, 0x08, 0x46, 0x40, 0xeb,
  1049. 0xb4, 0x21, 0x40, 0x3b, 0x40, 0x19, 0x5e, 0x80, 0x04, 0x98, 0x3c, 0x74, 0xca, 0x5c, 0xa6, 0x1d,
  1050. 0x66, 0xe8, 0x8c, 0x47, 0x91, 0xce, 0xce, 0x11, 0x59, 0x52, 0x75, 0xa7, 0x4c, 0xca, 0x77, 0xe0,
  1051. 0x03, 0xf0, 0xcc, 0x0b, 0xdf, 0x91, 0x17, 0xe6, 0xfe, 0x48, 0xd1, 0x3f, 0xd7, 0x02, 0xde, 0x4e,
  1052. 0xbf, 0xdb, 0xfd, 0xed, 0xed, 0xde, 0xde, 0xfe, 0x6c, 0x18, 0x5f, 0x85, 0x7e, 0xb2, 0x24, 0x33,
  1053. 0x46, 0xe2, 0x2b, 0x12, 0x1f, 0x45, 0x71, 0xc8, 0x43, 0x34, 0x2a, 0x80, 0xb3, 0xe8, 0xdc, 0xfe,
  1054. 0x04, 0xd0, 0x77, 0x0e, 0x77, 0x2f, 0x4e, 0x88, 0x4f, 0x38, 0xc1, 0xe4, 0x55, 0x42, 0x18, 0x47,
  1055. 0x77, 0xa0, 0x37, 0xa7, 0x3e, 0x99, 0x51, 0x8f, 0x99, 0xc6, 0xa4, 0x35, 0xdd, 0xc6, 0x5d, 0xf1,
  1056. 0x7d, 0xea, 0x31, 0xfb, 0x19, 0x8c, 0x0b, 0x0e, 0x2c, 0x0a, 0x03, 0x46, 0xd0, 0x13, 0xe8, 0xc6,
  1057. 0x84, 0x25, 0x3e, 0x57, 0x0e, 0xfd, 0x47, 0xfb, 0x47, 0xe5, 0x58, 0x47, 0x99, 0x4b, 0xe2, 0x73,
  1058. 0x9c, 0x9a, 0xdb, 0x14, 0x06, 0xf9, 0x0d, 0xb4, 0x07, 0x5d, 0x1d, 0xdb, 0x34, 0x26, 0xc6, 0x74,
  1059. 0x1b, 0x6f, 0xa9, 0xd0, 0x68, 0x17, 0xb6, 0x18, 0x77, 0x78, 0xc2, 0xcc, 0xcd, 0x89, 0x31, 0xed,
  1060. 0x60, 0xfd, 0x85, 0x76, 0xa0, 0x43, 0xe2, 0x38, 0x8c, 0xcd, 0x96, 0x34, 0x57, 0x1f, 0x08, 0x41,
  1061. 0x9b, 0xd1, 0xdf, 0x88, 0xd9, 0x9e, 0x18, 0xd3, 0x21, 0x96, 0x6b, 0xbb, 0x0b, 0x9d, 0xef, 0x97,
  1062. 0x11, 0x7f, 0x6d, 0x7f, 0x09, 0xe6, 0x0b, 0xc7, 0x4d, 0x92, 0xe5, 0x0b, 0x79, 0xc6, 0xe3, 0x0b,
  1063. 0xe2, 0x5e, 0xa6, 0xb9, 0xdf, 0x85, 0x6d, 0x79, 0x72, 0x2f, 0x3d, 0xc1, 0x10, 0xf7, 0x14, 0x70,
  1064. 0xea, 0xd9, 0xdf, 0xc0, 0x9d, 0x1a, 0x47, 0x5d, 0x83, 0x0f, 0x60, 0xb8, 0x70, 0xe2, 0x73, 0x67,
  1065. 0x41, 0x66, 0xb1, 0xc3, 0x69, 0x28, 0xbd, 0x0d, 0x3c, 0xd0, 0x20, 0x16, 0x98, 0xfd, 0x0b, 0x58,
  1066. 0x05, 0x86, 0x70, 0x19, 0x39, 0x2e, 0x6f, 0x12, 0x1c, 0x4d, 0xa0, 0x1f, 0xc5, 0xc4, 0xf1, 0xfd,
  1067. 0xd0, 0x75, 0x38, 0x91, 0x55, 0x68, 0xe1, 0x3c, 0x64, 0xbf, 0x0b, 0x77, 0x6b, 0xc9, 0xd5, 0x01,
  1068. 0xed, 0x27, 0xa5, 0xd3, 0x87, 0xcb, 0x25, 0x6d, 0x14, 0xda, 0x7e, 0xa7, 0x72, 0x6a, 0xe9, 0xa9,
  1069. 0x79, 0xbf, 0x2a, 0xed, 0xfa, 0xc4, 0x09, 0x92, 0xa8, 0x11, 0x71, 0xf9, 0xc4, 0xa9, 0x6b, 0xc6,
  1070. 0xbc, 0xa7, 0x9a, 0xe3, 0x38, 0xf4, 0x7d, 0xe2, 0x72, 0x1a, 0x06, 0x29, 0xed, 0x3e, 0x80, 0x9b,
  1071. 0x81, 0xba, 0x55, 0x72, 0x88, 0x6d, 0x81, 0x59, 0x75, 0xd5, 0xb4, 0x7f, 0x19, 0x30, 0xfe, 0x96,
  1072. 0x31, 0xba, 0x08, 0x54, 0xd8, 0x46, 0xe5, 0x2f, 0x06, 0xdc, 0x2c, 0x07, 0x2c, 0x5f, 0x4f, 0xab,
  1073. 0x72, 0x3d, 0xc2, 0x22, 0x26, 0x91, 0x4f, 0x5d, 0x47, 0x52, 0xb4, 0x25, 0x45, 0x1e, 0x42, 0x23,
  1074. 0x68, 0x71, 0xee, 0x9b, 0x1d, 0xb9, 0x23, 0x96, 0xf6, 0x2e, 0xec, 0x14, 0x4f, 0xaa, 0x53, 0xf8,
  1075. 0x02, 0xf6, 0x14, 0x72, 0xf6, 0x3a, 0x70, 0xcf, 0xe4, 0x4b, 0x68, 0x54, 0xf0, 0xbf, 0x0d, 0x30,
  1076. 0xab, 0x8e, 0xba, 0x83, 0xff, 0x6f, 0xfe, 0xff, 0x36, 0x3b, 0xf4, 0x1e, 0xf4, 0xb9, 0x43, 0xfd,
  1077. 0x59, 0x38, 0x9f, 0x33, 0xc2, 0xcd, 0xad, 0x89, 0x31, 0x6d, 0x63, 0x10, 0xd0, 0x33, 0x89, 0xa0,
  1078. 0x03, 0x18, 0xb9, 0xaa, 0x8b, 0x67, 0x31, 0xb9, 0xa2, 0x4c, 0x30, 0x77, 0xe5, 0xc1, 0x6e, 0xb9,
  1079. 0x69, 0x77, 0x2b, 0x18, 0xd9, 0x30, 0xa4, 0xde, 0xf5, 0x4c, 0x0e, 0x0f, 0xf9, 0xf4, 0x7b, 0x92,
  1080. 0xad, 0x4f, 0xbd, 0xeb, 0x1f, 0xa8, 0x4f, 0xce, 0xc4, 0x04, 0xf8, 0x1c, 0x76, 0x6f, 0x92, 0x3f,
  1081. 0x0d, 0x3c, 0x72, 0xdd, 0xa8, 0x68, 0x3f, 0xe6, 0x8b, 0xad, 0xdd, 0x74, 0xc9, 0x0e, 0x01, 0x51,
  1082. 0x01, 0xa8, 0xb8, 0x6e, 0x18, 0x70, 0x12, 0x70, 0x49, 0x30, 0xc0, 0x23, 0xb9, 0x23, 0x82, 0x1f,
  1083. 0x2b, 0xdc, 0xfe, 0xc3, 0x80, 0xdb, 0x37, 0x4c, 0x27, 0x0e, 0x77, 0x1a, 0xb5, 0x9e, 0x05, 0xbd,
  1084. 0x2c, 0xfb, 0x4d, 0xb5, 0x97, 0x7e, 0x8b, 0xb1, 0xa8, 0xab, 0xd7, 0x92, 0x3b, 0xfa, 0xab, 0x6e,
  1085. 0x00, 0x8a, 0x20, 0x01, 0x21, 0x9e, 0x9a, 0xae, 0xea, 0x1a, 0x7a, 0x0a, 0x38, 0xf5, 0xec, 0xaf,
  1086. 0xf3, 0xb5, 0x51, 0x47, 0xd3, 0x39, 0xbe, 0x0f, 0x83, 0x9a, 0xec, 0xfa, 0xf3, 0x5c, 0x62, 0x9f,
  1087. 0x01, 0x52, 0xce, 0x4f, 0xc3, 0x24, 0x68, 0x36, 0x53, 0x6e, 0xc3, 0xb8, 0xe0, 0xa2, 0x1b, 0xfb,
  1088. 0x31, 0xec, 0x28, 0xf8, 0x79, 0xb0, 0x6c, 0xcc, 0xb5, 0x97, 0x96, 0x35, 0x73, 0xd2, 0x6c, 0x59,
  1089. 0x90, 0xe7, 0xf4, 0x27, 0x31, 0x83, 0x15, 0x99, 0x78, 0x55, 0x45, 0x58, 0x9b, 0xff, 0x0c, 0x70,
  1090. 0x42, 0xd9, 0xa5, 0x7a, 0x16, 0xa2, 0x5f, 0x3d, 0x1a, 0xeb, 0xd9, 0x22, 0x96, 0x02, 0x71, 0x7c,
  1091. 0x5f, 0xde, 0x41, 0x1b, 0x8b, 0xa5, 0x28, 0x73, 0xc2, 0x88, 0x27, 0x8b, 0xdf, 0xc6, 0x72, 0x2d,
  1092. 0xb0, 0x79, 0x4c, 0x54, 0xe9, 0xdb, 0x58, 0xae, 0xed, 0x3f, 0x0d, 0xd8, 0x7e, 0x4a, 0x96, 0x9a,
  1093. 0x79, 0x1f, 0x60, 0x11, 0xc6, 0x61, 0xc2, 0x69, 0x40, 0x98, 0x0c, 0xd0, 0xc1, 0x39, 0xe4, 0xbf,
  1094. 0xc7, 0x91, 0xd7, 0x4e, 0xfc, 0xb9, 0xbc, 0xdd, 0x36, 0x96, 0x6b, 0x81, 0x5d, 0x10, 0x27, 0xd2,
  1095. 0xcf, 0x4b, 0xae, 0x85, 0x6a, 0x32, 0xee, 0xb8, 0x97, 0xf2, 0x35, 0xb5, 0xb1, 0xfa, 0x78, 0xf4,
  1096. 0x3b, 0xc0, 0x40, 0x37, 0x81, 0x94, 0x6d, 0xf4, 0x12, 0xfa, 0x39, 0xb9, 0x47, 0x1f, 0x56, 0x55,
  1097. 0xbd, 0xfa, 0xf3, 0xc1, 0xfa, 0x68, 0x8d, 0x95, 0x2e, 0xf6, 0x06, 0x0a, 0xe0, 0xed, 0x8a, 0x9c,
  1098. 0xa2, 0x07, 0x55, 0xef, 0x55, 0x62, 0x6d, 0x3d, 0x6c, 0x64, 0x9b, 0xc5, 0xe3, 0x30, 0xae, 0xd1,
  1099. 0x47, 0x74, 0xb8, 0x86, 0xa5, 0xa0, 0xd1, 0xd6, 0xc7, 0x0d, 0xad, 0xb3, 0xa8, 0xaf, 0x00, 0x55,
  1100. 0xc5, 0x13, 0x3d, 0x5c, 0x4b, 0x73, 0x23, 0xce, 0xd6, 0x61, 0x33, 0xe3, 0x95, 0x89, 0x2a, 0x59,
  1101. 0x5d, 0x9b, 0x68, 0x41, 0xb8, 0xd7, 0x26, 0x5a, 0xd2, 0xea, 0x0d, 0x74, 0x09, 0xa3, 0xb2, 0xe4,
  1102. 0xa2, 0x83, 0x55, 0xbf, 0x03, 0x2b, 0x8a, 0x6e, 0x3d, 0x68, 0x62, 0x9a, 0x05, 0x9b, 0xc1, 0x20,
  1103. 0x2f, 0x8c, 0xa8, 0xa6, 0xe9, 0x6a, 0x24, 0xde, 0xba, 0xb7, 0xce, 0x2c, 0x9f, 0x4d, 0x59, 0x28,
  1104. 0xeb, 0xb2, 0x59, 0xa1, 0xc2, 0x75, 0xd9, 0xac, 0xd2, 0x5d, 0x7b, 0x03, 0xfd, 0x0a, 0xb7, 0x4a,
  1105. 0x0a, 0x83, 0xa6, 0x6f, 0x22, 0xc8, 0x6b, 0x97, 0x75, 0xd0, 0xc0, 0x32, 0x8d, 0xf4, 0xa9, 0x81,
  1106. 0x16, 0xf0, 0x56, 0x71, 0xd0, 0xa3, 0xfb, 0x6f, 0x22, 0xc8, 0xa9, 0x94, 0x35, 0x5d, 0x6f, 0x98,
  1107. 0x0b, 0xf4, 0x12, 0xfa, 0xb9, 0x09, 0x5f, 0x37, 0x3c, 0xaa, 0x9a, 0x51, 0x37, 0x3c, 0xea, 0x64,
  1108. 0x62, 0x03, 0x9d, 0xc3, 0xb0, 0x30, 0xf3, 0xd1, 0xbd, 0x55, 0x9e, 0x45, 0x25, 0xb1, 0xee, 0xaf,
  1109. 0xb5, 0x4b, 0x63, 0x9c, 0x6f, 0xc9, 0xff, 0x4d, 0x8f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x5d,
  1110. 0xf3, 0x60, 0x76, 0x4e, 0x0d, 0x00, 0x00,
  1111. }