liangyuanpeng commented on a change in pull request #481: URL: https://github.com/apache/rocketmq-client-go/pull/481#discussion_r450955477
########## File path: admin/protocol.go ########## @@ -0,0 +1,38 @@ +/* +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package admin + +import ( + "github.com/apache/rocketmq-client-go/v2/consumer" + "github.com/apache/rocketmq-client-go/v2/internal/remote" +) + +type Connection struct { + ClientId string `json:"clientId"` + ClientAddr string `json:"clientAddr"` + Language remote.LanguageCode `json:"language"` + Version int `json:"version"` +} + +// ConsumerConnection consumer connection info fetched from broker, consumer register info by heartbeat +type ConsumerConnection struct { + connectionSet map[Connection]struct{} + consumeType consumer.ConsumeType + messageModel consumer.MessageModel + consumeFromWhere consumer.ConsumeFromWhere Review comment: Use pointer will better on struct ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
