diff --git a/subscriber/subscriber.pb.go b/subscriber/subscriber.pb.go index 455901d..731af29 100644 --- a/subscriber/subscriber.pb.go +++ b/subscriber/subscriber.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v4.22.2 +// protoc v3.21.12 // source: subscriber/subscriber.proto package subscriber @@ -25,7 +25,7 @@ type Topic struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + Topic []string `protobuf:"bytes,1,rep,name=topic,proto3" json:"topic,omitempty"` } func (x *Topic) Reset() { @@ -60,11 +60,11 @@ func (*Topic) Descriptor() ([]byte, []int) { return file_subscriber_subscriber_proto_rawDescGZIP(), []int{0} } -func (x *Topic) GetTopic() string { +func (x *Topic) GetTopic() []string { if x != nil { return x.Topic } - return "" + return nil } type REvent struct { @@ -128,7 +128,7 @@ var file_subscriber_subscriber_proto_rawDesc = []byte{ 0x0a, 0x1b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x38, 0x0a, 0x06, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x38, 0x0a, 0x06, 0x52, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, diff --git a/subscriber/subscriber.proto b/subscriber/subscriber.proto index 54b041b..c912197 100644 --- a/subscriber/subscriber.proto +++ b/subscriber/subscriber.proto @@ -7,7 +7,7 @@ service Subscriber { } message Topic { - string topic = 1; + repeated string topic = 1; } message REvent { diff --git a/subscriber/subscriber_grpc.pb.go b/subscriber/subscriber_grpc.pb.go index 2d5aa51..b27b100 100644 --- a/subscriber/subscriber_grpc.pb.go +++ b/subscriber/subscriber_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v4.22.2 +// - protoc v3.21.12 // source: subscriber/subscriber.proto package subscriber