You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.pb.go 14 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v4.22.3
  5. // source: pkgs/rpc/client/client.proto
  6. package clirpc
  7. import (
  8. rpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type HeaderKV struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
  25. Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
  26. }
  27. func (x *HeaderKV) Reset() {
  28. *x = HeaderKV{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_pkgs_rpc_client_client_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *HeaderKV) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*HeaderKV) ProtoMessage() {}
  39. func (x *HeaderKV) ProtoReflect() protoreflect.Message {
  40. mi := &file_pkgs_rpc_client_client_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use HeaderKV.ProtoReflect.Descriptor instead.
  51. func (*HeaderKV) Descriptor() ([]byte, []int) {
  52. return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *HeaderKV) GetKey() string {
  55. if x != nil {
  56. return x.Key
  57. }
  58. return ""
  59. }
  60. func (x *HeaderKV) GetValue() string {
  61. if x != nil {
  62. return x.Value
  63. }
  64. return ""
  65. }
  66. type HTTPProxyRequest struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. URI string `protobuf:"bytes,1,opt,name=URI,proto3" json:"URI,omitempty"`
  71. Method string `protobuf:"bytes,2,opt,name=Method,proto3" json:"Method,omitempty"`
  72. Header []*HeaderKV `protobuf:"bytes,3,rep,name=Header,proto3" json:"Header,omitempty"`
  73. Body []byte `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
  74. }
  75. func (x *HTTPProxyRequest) Reset() {
  76. *x = HTTPProxyRequest{}
  77. if protoimpl.UnsafeEnabled {
  78. mi := &file_pkgs_rpc_client_client_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. }
  83. func (x *HTTPProxyRequest) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*HTTPProxyRequest) ProtoMessage() {}
  87. func (x *HTTPProxyRequest) ProtoReflect() protoreflect.Message {
  88. mi := &file_pkgs_rpc_client_client_proto_msgTypes[1]
  89. if protoimpl.UnsafeEnabled && x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use HTTPProxyRequest.ProtoReflect.Descriptor instead.
  99. func (*HTTPProxyRequest) Descriptor() ([]byte, []int) {
  100. return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{1}
  101. }
  102. func (x *HTTPProxyRequest) GetURI() string {
  103. if x != nil {
  104. return x.URI
  105. }
  106. return ""
  107. }
  108. func (x *HTTPProxyRequest) GetMethod() string {
  109. if x != nil {
  110. return x.Method
  111. }
  112. return ""
  113. }
  114. func (x *HTTPProxyRequest) GetHeader() []*HeaderKV {
  115. if x != nil {
  116. return x.Header
  117. }
  118. return nil
  119. }
  120. func (x *HTTPProxyRequest) GetBody() []byte {
  121. if x != nil {
  122. return x.Body
  123. }
  124. return nil
  125. }
  126. type HTTPProxyResponse struct {
  127. state protoimpl.MessageState
  128. sizeCache protoimpl.SizeCache
  129. unknownFields protoimpl.UnknownFields
  130. StatusCode int32 `protobuf:"varint,1,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
  131. Header []*HeaderKV `protobuf:"bytes,2,rep,name=Header,proto3" json:"Header,omitempty"`
  132. Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
  133. }
  134. func (x *HTTPProxyResponse) Reset() {
  135. *x = HTTPProxyResponse{}
  136. if protoimpl.UnsafeEnabled {
  137. mi := &file_pkgs_rpc_client_client_proto_msgTypes[2]
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. ms.StoreMessageInfo(mi)
  140. }
  141. }
  142. func (x *HTTPProxyResponse) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*HTTPProxyResponse) ProtoMessage() {}
  146. func (x *HTTPProxyResponse) ProtoReflect() protoreflect.Message {
  147. mi := &file_pkgs_rpc_client_client_proto_msgTypes[2]
  148. if protoimpl.UnsafeEnabled && x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use HTTPProxyResponse.ProtoReflect.Descriptor instead.
  158. func (*HTTPProxyResponse) Descriptor() ([]byte, []int) {
  159. return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{2}
  160. }
  161. func (x *HTTPProxyResponse) GetStatusCode() int32 {
  162. if x != nil {
  163. return x.StatusCode
  164. }
  165. return 0
  166. }
  167. func (x *HTTPProxyResponse) GetHeader() []*HeaderKV {
  168. if x != nil {
  169. return x.Header
  170. }
  171. return nil
  172. }
  173. func (x *HTTPProxyResponse) GetBody() []byte {
  174. if x != nil {
  175. return x.Body
  176. }
  177. return nil
  178. }
  179. var File_pkgs_rpc_client_client_proto protoreflect.FileDescriptor
  180. var file_pkgs_rpc_client_client_proto_rawDesc = []byte{
  181. 0x0a, 0x1c, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
  182. 0x74, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  183. 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x1a, 0x12, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63,
  184. 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x08, 0x48, 0x65,
  185. 0x61, 0x64, 0x65, 0x72, 0x4b, 0x56, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20,
  186. 0x01, 0x28, 0x09, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75,
  187. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7a,
  188. 0x0a, 0x10, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
  189. 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  190. 0x03, 0x55, 0x52, 0x49, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02,
  191. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x06,
  192. 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x63,
  193. 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4b, 0x56, 0x52, 0x06,
  194. 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x18, 0x04,
  195. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x71, 0x0a, 0x11, 0x48, 0x54,
  196. 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  197. 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  198. 0x01, 0x28, 0x05, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12,
  199. 0x28, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  200. 0x10, 0x2e, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4b,
  201. 0x56, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x6f, 0x64,
  202. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x32, 0xa2, 0x02,
  203. 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x4c,
  204. 0x6f, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63,
  205. 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52,
  206. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x33, 0x0a, 0x14, 0x47,
  207. 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49,
  208. 0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  209. 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  210. 0x12, 0x2d, 0x0a, 0x0e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x66, 0x74, 0x52,
  211. 0x50, 0x43, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  212. 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  213. 0x3f, 0x0a, 0x1a, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x66, 0x74, 0x49, 0x6e,
  214. 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x10, 0x2e,
  215. 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x1a,
  216. 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01,
  217. 0x12, 0x40, 0x0a, 0x09, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x18, 0x2e,
  218. 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79,
  219. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63,
  220. 0x2e, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  221. 0x73, 0x65, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72,
  222. 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6a,
  223. 0x63, 0x73, 0x2d, 0x70, 0x75, 0x62, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b,
  224. 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x3b, 0x63, 0x6c,
  225. 0x69, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  226. }
  227. var (
  228. file_pkgs_rpc_client_client_proto_rawDescOnce sync.Once
  229. file_pkgs_rpc_client_client_proto_rawDescData = file_pkgs_rpc_client_client_proto_rawDesc
  230. )
  231. func file_pkgs_rpc_client_client_proto_rawDescGZIP() []byte {
  232. file_pkgs_rpc_client_client_proto_rawDescOnce.Do(func() {
  233. file_pkgs_rpc_client_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkgs_rpc_client_client_proto_rawDescData)
  234. })
  235. return file_pkgs_rpc_client_client_proto_rawDescData
  236. }
  237. var file_pkgs_rpc_client_client_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  238. var file_pkgs_rpc_client_client_proto_goTypes = []any{
  239. (*HeaderKV)(nil), // 0: clirpc.HeaderKV
  240. (*HTTPProxyRequest)(nil), // 1: clirpc.HTTPProxyRequest
  241. (*HTTPProxyResponse)(nil), // 2: clirpc.HTTPProxyResponse
  242. (*rpc.Request)(nil), // 3: rpc.Request
  243. (*rpc.ChunkedData)(nil), // 4: rpc.ChunkedData
  244. (*rpc.Response)(nil), // 5: rpc.Response
  245. }
  246. var file_pkgs_rpc_client_client_proto_depIdxs = []int32{
  247. 0, // 0: clirpc.HTTPProxyRequest.Header:type_name -> clirpc.HeaderKV
  248. 0, // 1: clirpc.HTTPProxyResponse.Header:type_name -> clirpc.HeaderKV
  249. 3, // 2: clirpc.Client.PubLockChannel:input_type -> rpc.Request
  250. 3, // 3: clirpc.Client.GetClusterMasterInfo:input_type -> rpc.Request
  251. 3, // 4: clirpc.Client.ClusterRaftRPC:input_type -> rpc.Request
  252. 4, // 5: clirpc.Client.ClusterRaftInstallSnapshot:input_type -> rpc.ChunkedData
  253. 1, // 6: clirpc.Client.HTTPProxy:input_type -> clirpc.HTTPProxyRequest
  254. 5, // 7: clirpc.Client.PubLockChannel:output_type -> rpc.Response
  255. 5, // 8: clirpc.Client.GetClusterMasterInfo:output_type -> rpc.Response
  256. 5, // 9: clirpc.Client.ClusterRaftRPC:output_type -> rpc.Response
  257. 5, // 10: clirpc.Client.ClusterRaftInstallSnapshot:output_type -> rpc.Response
  258. 2, // 11: clirpc.Client.HTTPProxy:output_type -> clirpc.HTTPProxyResponse
  259. 7, // [7:12] is the sub-list for method output_type
  260. 2, // [2:7] is the sub-list for method input_type
  261. 2, // [2:2] is the sub-list for extension type_name
  262. 2, // [2:2] is the sub-list for extension extendee
  263. 0, // [0:2] is the sub-list for field type_name
  264. }
  265. func init() { file_pkgs_rpc_client_client_proto_init() }
  266. func file_pkgs_rpc_client_client_proto_init() {
  267. if File_pkgs_rpc_client_client_proto != nil {
  268. return
  269. }
  270. if !protoimpl.UnsafeEnabled {
  271. file_pkgs_rpc_client_client_proto_msgTypes[0].Exporter = func(v any, i int) any {
  272. switch v := v.(*HeaderKV); i {
  273. case 0:
  274. return &v.state
  275. case 1:
  276. return &v.sizeCache
  277. case 2:
  278. return &v.unknownFields
  279. default:
  280. return nil
  281. }
  282. }
  283. file_pkgs_rpc_client_client_proto_msgTypes[1].Exporter = func(v any, i int) any {
  284. switch v := v.(*HTTPProxyRequest); i {
  285. case 0:
  286. return &v.state
  287. case 1:
  288. return &v.sizeCache
  289. case 2:
  290. return &v.unknownFields
  291. default:
  292. return nil
  293. }
  294. }
  295. file_pkgs_rpc_client_client_proto_msgTypes[2].Exporter = func(v any, i int) any {
  296. switch v := v.(*HTTPProxyResponse); i {
  297. case 0:
  298. return &v.state
  299. case 1:
  300. return &v.sizeCache
  301. case 2:
  302. return &v.unknownFields
  303. default:
  304. return nil
  305. }
  306. }
  307. }
  308. type x struct{}
  309. out := protoimpl.TypeBuilder{
  310. File: protoimpl.DescBuilder{
  311. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  312. RawDescriptor: file_pkgs_rpc_client_client_proto_rawDesc,
  313. NumEnums: 0,
  314. NumMessages: 3,
  315. NumExtensions: 0,
  316. NumServices: 1,
  317. },
  318. GoTypes: file_pkgs_rpc_client_client_proto_goTypes,
  319. DependencyIndexes: file_pkgs_rpc_client_client_proto_depIdxs,
  320. MessageInfos: file_pkgs_rpc_client_client_proto_msgTypes,
  321. }.Build()
  322. File_pkgs_rpc_client_client_proto = out.File
  323. file_pkgs_rpc_client_client_proto_rawDesc = nil
  324. file_pkgs_rpc_client_client_proto_goTypes = nil
  325. file_pkgs_rpc_client_client_proto_depIdxs = nil
  326. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。