|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v4.22.3
- // source: pkgs/rpc/client/client.proto
-
- package clirpc
-
- import (
- rpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
-
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
-
- type HeaderKV struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
- Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
- }
-
- func (x *HeaderKV) Reset() {
- *x = HeaderKV{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *HeaderKV) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*HeaderKV) ProtoMessage() {}
-
- func (x *HeaderKV) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use HeaderKV.ProtoReflect.Descriptor instead.
- func (*HeaderKV) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{0}
- }
-
- func (x *HeaderKV) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
-
- func (x *HeaderKV) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
-
- type HTTPProxyRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- URI string `protobuf:"bytes,1,opt,name=URI,proto3" json:"URI,omitempty"`
- Method string `protobuf:"bytes,2,opt,name=Method,proto3" json:"Method,omitempty"`
- Header []*HeaderKV `protobuf:"bytes,3,rep,name=Header,proto3" json:"Header,omitempty"`
- Body []byte `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
- }
-
- func (x *HTTPProxyRequest) Reset() {
- *x = HTTPProxyRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *HTTPProxyRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*HTTPProxyRequest) ProtoMessage() {}
-
- func (x *HTTPProxyRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use HTTPProxyRequest.ProtoReflect.Descriptor instead.
- func (*HTTPProxyRequest) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *HTTPProxyRequest) GetURI() string {
- if x != nil {
- return x.URI
- }
- return ""
- }
-
- func (x *HTTPProxyRequest) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
-
- func (x *HTTPProxyRequest) GetHeader() []*HeaderKV {
- if x != nil {
- return x.Header
- }
- return nil
- }
-
- func (x *HTTPProxyRequest) GetBody() []byte {
- if x != nil {
- return x.Body
- }
- return nil
- }
-
- type HTTPProxyResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- StatusCode int32 `protobuf:"varint,1,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
- Header []*HeaderKV `protobuf:"bytes,2,rep,name=Header,proto3" json:"Header,omitempty"`
- Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
- }
-
- func (x *HTTPProxyResponse) Reset() {
- *x = HTTPProxyResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *HTTPProxyResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*HTTPProxyResponse) ProtoMessage() {}
-
- func (x *HTTPProxyResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkgs_rpc_client_client_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use HTTPProxyResponse.ProtoReflect.Descriptor instead.
- func (*HTTPProxyResponse) Descriptor() ([]byte, []int) {
- return file_pkgs_rpc_client_client_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *HTTPProxyResponse) GetStatusCode() int32 {
- if x != nil {
- return x.StatusCode
- }
- return 0
- }
-
- func (x *HTTPProxyResponse) GetHeader() []*HeaderKV {
- if x != nil {
- return x.Header
- }
- return nil
- }
-
- func (x *HTTPProxyResponse) GetBody() []byte {
- if x != nil {
- return x.Body
- }
- return nil
- }
-
- var File_pkgs_rpc_client_client_proto protoreflect.FileDescriptor
-
- var file_pkgs_rpc_client_client_proto_rawDesc = []byte{
- 0x0a, 0x1c, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
- 0x74, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
- 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x1a, 0x12, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63,
- 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x08, 0x48, 0x65,
- 0x61, 0x64, 0x65, 0x72, 0x4b, 0x56, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7a,
- 0x0a, 0x10, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x03, 0x55, 0x52, 0x49, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x06,
- 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x63,
- 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4b, 0x56, 0x52, 0x06,
- 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x71, 0x0a, 0x11, 0x48, 0x54,
- 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
- 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x05, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12,
- 0x28, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x10, 0x2e, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4b,
- 0x56, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x6f, 0x64,
- 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x32, 0xd2, 0x02,
- 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x4c,
- 0x6f, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63,
- 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x33, 0x0a, 0x14, 0x47,
- 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49,
- 0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x2d, 0x0a, 0x0e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x66, 0x74, 0x52,
- 0x50, 0x43, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
- 0x3f, 0x0a, 0x1a, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x61, 0x66, 0x74, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x10, 0x2e,
- 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x1a,
- 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01,
- 0x12, 0x2e, 0x0a, 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x79,
- 0x4c, 0x6f, 0x67, 0x12, 0x0c, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x0d, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x40, 0x0a, 0x09, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x18, 0x2e,
- 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63,
- 0x2e, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72,
- 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6a,
- 0x63, 0x73, 0x2d, 0x70, 0x75, 0x62, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b,
- 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x72, 0x70, 0x63, 0x3b, 0x63, 0x6c,
- 0x69, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
-
- var (
- file_pkgs_rpc_client_client_proto_rawDescOnce sync.Once
- file_pkgs_rpc_client_client_proto_rawDescData = file_pkgs_rpc_client_client_proto_rawDesc
- )
-
- func file_pkgs_rpc_client_client_proto_rawDescGZIP() []byte {
- file_pkgs_rpc_client_client_proto_rawDescOnce.Do(func() {
- file_pkgs_rpc_client_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkgs_rpc_client_client_proto_rawDescData)
- })
- return file_pkgs_rpc_client_client_proto_rawDescData
- }
-
- var file_pkgs_rpc_client_client_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_pkgs_rpc_client_client_proto_goTypes = []any{
- (*HeaderKV)(nil), // 0: clirpc.HeaderKV
- (*HTTPProxyRequest)(nil), // 1: clirpc.HTTPProxyRequest
- (*HTTPProxyResponse)(nil), // 2: clirpc.HTTPProxyResponse
- (*rpc.Request)(nil), // 3: rpc.Request
- (*rpc.ChunkedData)(nil), // 4: rpc.ChunkedData
- (*rpc.Response)(nil), // 5: rpc.Response
- }
- var file_pkgs_rpc_client_client_proto_depIdxs = []int32{
- 0, // 0: clirpc.HTTPProxyRequest.Header:type_name -> clirpc.HeaderKV
- 0, // 1: clirpc.HTTPProxyResponse.Header:type_name -> clirpc.HeaderKV
- 3, // 2: clirpc.Client.PubLockChannel:input_type -> rpc.Request
- 3, // 3: clirpc.Client.GetClusterMasterInfo:input_type -> rpc.Request
- 3, // 4: clirpc.Client.ClusterRaftRPC:input_type -> rpc.Request
- 4, // 5: clirpc.Client.ClusterRaftInstallSnapshot:input_type -> rpc.ChunkedData
- 3, // 6: clirpc.Client.ClusterApplyLog:input_type -> rpc.Request
- 1, // 7: clirpc.Client.HTTPProxy:input_type -> clirpc.HTTPProxyRequest
- 5, // 8: clirpc.Client.PubLockChannel:output_type -> rpc.Response
- 5, // 9: clirpc.Client.GetClusterMasterInfo:output_type -> rpc.Response
- 5, // 10: clirpc.Client.ClusterRaftRPC:output_type -> rpc.Response
- 5, // 11: clirpc.Client.ClusterRaftInstallSnapshot:output_type -> rpc.Response
- 5, // 12: clirpc.Client.ClusterApplyLog:output_type -> rpc.Response
- 2, // 13: clirpc.Client.HTTPProxy:output_type -> clirpc.HTTPProxyResponse
- 8, // [8:14] is the sub-list for method output_type
- 2, // [2:8] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
-
- func init() { file_pkgs_rpc_client_client_proto_init() }
- func file_pkgs_rpc_client_client_proto_init() {
- if File_pkgs_rpc_client_client_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_pkgs_rpc_client_client_proto_msgTypes[0].Exporter = func(v any, i int) any {
- switch v := v.(*HeaderKV); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_rpc_client_client_proto_msgTypes[1].Exporter = func(v any, i int) any {
- switch v := v.(*HTTPProxyRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pkgs_rpc_client_client_proto_msgTypes[2].Exporter = func(v any, i int) any {
- switch v := v.(*HTTPProxyResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_pkgs_rpc_client_client_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_pkgs_rpc_client_client_proto_goTypes,
- DependencyIndexes: file_pkgs_rpc_client_client_proto_depIdxs,
- MessageInfos: file_pkgs_rpc_client_client_proto_msgTypes,
- }.Build()
- File_pkgs_rpc_client_client_proto = out.File
- file_pkgs_rpc_client_client_proto_rawDesc = nil
- file_pkgs_rpc_client_client_proto_goTypes = nil
- file_pkgs_rpc_client_client_proto_depIdxs = nil
- }
|