@ -20,18 +20,14 @@ const (
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
)
)
type FindBrokerRequest struct {
type FindBrokerLeader Request struct {
state protoimpl . MessageState
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
Namespace string ` protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty" `
Topic string ` protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty" `
Parition int32 ` protobuf:"varint,3,opt,name=parition,proto3" json:"parition,omitempty" `
}
}
func ( x * FindBrokerRequest ) Reset ( ) {
* x = FindBrokerRequest { }
func ( x * FindBrokerLeaderRequest ) Reset ( ) {
* x = FindBrokerLeaderRequest { }
if protoimpl . UnsafeEnabled {
if protoimpl . UnsafeEnabled {
mi := & file_mq_proto_msgTypes [ 0 ]
mi := & file_mq_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -39,13 +35,13 @@ func (x *FindBrokerRequest) Reset() {
}
}
}
}
func ( x * FindBrokerRequest ) String ( ) string {
func ( x * FindBrokerLeader Request ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
return protoimpl . X . MessageStringOf ( x )
}
}
func ( * FindBrokerRequest ) ProtoMessage ( ) { }
func ( * FindBrokerLeader Request ) ProtoMessage ( ) { }
func ( x * FindBrokerRequest ) ProtoReflect ( ) protoreflect . Message {
func ( x * FindBrokerLeader Request ) ProtoReflect ( ) protoreflect . Message {
mi := & file_mq_proto_msgTypes [ 0 ]
mi := & file_mq_proto_msgTypes [ 0 ]
if protoimpl . UnsafeEnabled && x != nil {
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -57,33 +53,12 @@ func (x *FindBrokerRequest) ProtoReflect() protoreflect.Message {
return mi . MessageOf ( x )
return mi . MessageOf ( x )
}
}
// Deprecated: Use FindBrokerRequest.ProtoReflect.Descriptor instead.
func ( * FindBrokerRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
// Deprecated: Use FindBrokerLeader Request.ProtoReflect.Descriptor instead.
func ( * FindBrokerLeader Request ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_mq_proto_rawDescGZIP ( ) , [ ] int { 0 }
return file_mq_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
}
func ( x * FindBrokerRequest ) GetNamespace ( ) string {
if x != nil {
return x . Namespace
}
return ""
}
func ( x * FindBrokerRequest ) GetTopic ( ) string {
if x != nil {
return x . Topic
}
return ""
}
func ( x * FindBrokerRequest ) GetParition ( ) int32 {
if x != nil {
return x . Parition
}
return 0
}
type FindBrokerResponse struct {
type FindBrokerLeaderResponse struct {
state protoimpl . MessageState
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
@ -91,8 +66,8 @@ type FindBrokerResponse struct {
Broker string ` protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty" `
Broker string ` protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,omitempty" `
}
}
func ( x * FindBrokerResponse ) Reset ( ) {
* x = FindBrokerResponse { }
func ( x * FindBrokerLeader Response ) Reset ( ) {
* x = FindBrokerLeader Response { }
if protoimpl . UnsafeEnabled {
if protoimpl . UnsafeEnabled {
mi := & file_mq_proto_msgTypes [ 1 ]
mi := & file_mq_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -100,13 +75,13 @@ func (x *FindBrokerResponse) Reset() {
}
}
}
}
func ( x * FindBrokerResponse ) String ( ) string {
func ( x * FindBrokerLeader Response ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
return protoimpl . X . MessageStringOf ( x )
}
}
func ( * FindBrokerResponse ) ProtoMessage ( ) { }
func ( * FindBrokerLeader Response ) ProtoMessage ( ) { }
func ( x * FindBrokerResponse ) ProtoReflect ( ) protoreflect . Message {
func ( x * FindBrokerLeader Response ) ProtoReflect ( ) protoreflect . Message {
mi := & file_mq_proto_msgTypes [ 1 ]
mi := & file_mq_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
@ -118,12 +93,12 @@ func (x *FindBrokerResponse) ProtoReflect() protoreflect.Message {
return mi . MessageOf ( x )
return mi . MessageOf ( x )
}
}
// Deprecated: Use FindBrokerResponse.ProtoReflect.Descriptor instead.
func ( * FindBrokerResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
// Deprecated: Use FindBrokerLeader Response.ProtoReflect.Descriptor instead.
func ( * FindBrokerLeader Response ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_mq_proto_rawDescGZIP ( ) , [ ] int { 1 }
return file_mq_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
}
func ( x * FindBrokerResponse ) GetBroker ( ) string {
func ( x * FindBrokerLeader Response ) GetBroker ( ) string {
if x != nil {
if x != nil {
return x . Broker
return x . Broker
}
}
@ -134,28 +109,25 @@ var File_mq_proto protoreflect.FileDescriptor
var file_mq_proto_rawDesc = [ ] byte {
var file_mq_proto_rawDesc = [ ] byte {
0x0a , 0x08 , 0x6d , 0x71 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x0c , 0x6d , 0x65 , 0x73 , 0x73 ,
0x0a , 0x08 , 0x6d , 0x71 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x0c , 0x6d , 0x65 , 0x73 , 0x73 ,
0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x22 , 0x63 , 0x0a , 0x11 , 0x46 , 0x69 , 0x6e , 0x64 ,
0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x1c , 0x0a ,
0x09 , 0x6e , 0x61 , 0x6d , 0x65 , 0x73 , 0x70 , 0x61 , 0x63 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 ,
0x52 , 0x09 , 0x6e , 0x61 , 0x6d , 0x65 , 0x73 , 0x70 , 0x61 , 0x63 , 0x65 , 0x12 , 0x14 , 0x0a , 0x05 , 0x74 ,
0x6f , 0x70 , 0x69 , 0x63 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x74 , 0x6f , 0x70 , 0x69 ,
0x63 , 0x12 , 0x1a , 0x0a , 0x08 , 0x70 , 0x61 , 0x72 , 0x69 , 0x74 , 0x69 , 0x6f , 0x6e , 0x18 , 0x03 , 0x20 ,
0x01 , 0x28 , 0x05 , 0x52 , 0x08 , 0x70 , 0x61 , 0x72 , 0x69 , 0x74 , 0x69 , 0x6f , 0x6e , 0x22 , 0x2c , 0x0a ,
0x12 , 0x46 , 0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x12 , 0x16 , 0x0a , 0x06 , 0x62 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x62 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x32 , 0x65 , 0x0a , 0x10 , 0x53 ,
0x65 , 0x61 , 0x77 , 0x65 , 0x65 , 0x64 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x12 ,
0x51 , 0x0a , 0x0a , 0x46 , 0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x12 , 0x1f , 0x2e ,
0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x2e , 0x46 , 0x69 , 0x6e ,
0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x20 ,
0x2e , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x2e , 0x46 , 0x69 ,
0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 ,
0x22 , 0x00 , 0x42 , 0x4e , 0x0a , 0x0c , 0x73 , 0x65 , 0x61 , 0x77 , 0x65 , 0x65 , 0x64 , 0x66 , 0x73 , 0x2e ,
0x6d , 0x71 , 0x42 , 0x10 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x51 , 0x75 , 0x65 , 0x75 , 0x65 , 0x50 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x5a , 0x2c , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d ,
0x2f , 0x63 , 0x68 , 0x72 , 0x69 , 0x73 , 0x6c , 0x75 , 0x73 , 0x66 , 0x2f , 0x73 , 0x65 , 0x61 , 0x77 , 0x65 ,
0x65 , 0x64 , 0x66 , 0x73 , 0x2f , 0x77 , 0x65 , 0x65 , 0x64 , 0x2f , 0x70 , 0x62 , 0x2f , 0x6d , 0x71 , 0x5f ,
0x70 , 0x62 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x22 , 0x19 , 0x0a , 0x17 , 0x46 , 0x69 , 0x6e , 0x64 ,
0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x4c , 0x65 , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x22 , 0x32 , 0x0a , 0x18 , 0x46 , 0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 ,
0x72 , 0x4c , 0x65 , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 ,
0x16 , 0x0a , 0x06 , 0x62 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 ,
0x06 , 0x62 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x32 , 0x77 , 0x0a , 0x10 , 0x53 , 0x65 , 0x61 , 0x77 , 0x65 ,
0x65 , 0x64 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x12 , 0x63 , 0x0a , 0x10 , 0x46 ,
0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x4c , 0x65 , 0x61 , 0x64 , 0x65 , 0x72 , 0x12 ,
0x25 , 0x2e , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 , 0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x2e , 0x46 ,
0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 , 0x4c , 0x65 , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 ,
0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x26 , 0x2e , 0x6d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x69 ,
0x6e , 0x67 , 0x5f , 0x70 , 0x62 , 0x2e , 0x46 , 0x69 , 0x6e , 0x64 , 0x42 , 0x72 , 0x6f , 0x6b , 0x65 , 0x72 ,
0x4c , 0x65 , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x00 ,
0x42 , 0x4e , 0x0a , 0x0c , 0x73 , 0x65 , 0x61 , 0x77 , 0x65 , 0x65 , 0x64 , 0x66 , 0x73 , 0x2e , 0x6d , 0x71 ,
0x42 , 0x10 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x51 , 0x75 , 0x65 , 0x75 , 0x65 , 0x50 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x5a , 0x2c , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x63 ,
0x68 , 0x72 , 0x69 , 0x73 , 0x6c , 0x75 , 0x73 , 0x66 , 0x2f , 0x73 , 0x65 , 0x61 , 0x77 , 0x65 , 0x65 , 0x64 ,
0x66 , 0x73 , 0x2f , 0x77 , 0x65 , 0x65 , 0x64 , 0x2f , 0x70 , 0x62 , 0x2f , 0x6d , 0x71 , 0x5f , 0x70 , 0x62 ,
0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
}
var (
var (
@ -172,12 +144,12 @@ func file_mq_proto_rawDescGZIP() []byte {
var file_mq_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 2 )
var file_mq_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 2 )
var file_mq_proto_goTypes = [ ] interface { } {
var file_mq_proto_goTypes = [ ] interface { } {
( * FindBrokerRequest ) ( nil ) , // 0: messaging_pb.FindBrokerRequest
( * FindBrokerResponse ) ( nil ) , // 1: messaging_pb.FindBrokerResponse
( * FindBrokerLeader Request ) ( nil ) , // 0: messaging_pb.FindBrokerLead erRequest
( * FindBrokerLeader Response ) ( nil ) , // 1: messaging_pb.FindBrokerLead erResponse
}
}
var file_mq_proto_depIdxs = [ ] int32 {
var file_mq_proto_depIdxs = [ ] int32 {
0 , // 0: messaging_pb.SeaweedMessaging.FindBroker:input_type -> messaging_pb.FindBrokerRequest
1 , // 1: messaging_pb.SeaweedMessaging.FindBroker:output_type -> messaging_pb.FindBrokerResponse
0 , // 0: messaging_pb.SeaweedMessaging.FindBrokerLeader :input_type -> messaging_pb.FindBrokerLead erRequest
1 , // 1: messaging_pb.SeaweedMessaging.FindBrokerLeader :output_type -> messaging_pb.FindBrokerLead erResponse
1 , // [1:2] is the sub-list for method output_type
1 , // [1:2] is the sub-list for method output_type
0 , // [0:1] is the sub-list for method input_type
0 , // [0:1] is the sub-list for method input_type
0 , // [0:0] is the sub-list for extension type_name
0 , // [0:0] is the sub-list for extension type_name
@ -192,7 +164,7 @@ func file_mq_proto_init() {
}
}
if ! protoimpl . UnsafeEnabled {
if ! protoimpl . UnsafeEnabled {
file_mq_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
file_mq_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * FindBrokerRequest ) ; i {
switch v := v . ( * FindBrokerLeader Request ) ; i {
case 0 :
case 0 :
return & v . state
return & v . state
case 1 :
case 1 :
@ -204,7 +176,7 @@ func file_mq_proto_init() {
}
}
}
}
file_mq_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
file_mq_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * FindBrokerResponse ) ; i {
switch v := v . ( * FindBrokerLeader Response ) ; i {
case 0 :
case 0 :
return & v . state
return & v . state
case 1 :
case 1 :