You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/12/14 06:32:04 UTC

[GitHub] Hellojungle commented on a change in pull request #12: [WIP]More Configurable fields and mores

Hellojungle commented on a change in pull request #12: [WIP]More Configurable fields and mores
URL: https://github.com/apache/rocketmq-client-go/pull/12#discussion_r241654740
 
 

 ##########
 File path: core/api.go
 ##########
 @@ -23,20 +23,31 @@ func Version() (version string) {
 }
 
 // NewProduer create a new producer with config
-func NewProduer(config *ProducerConfig) Producer {
+func NewProduer(config *ProducerConfig) (Producer, error) {
 	return newDefaultProducer(config)
 }
 
 // ProducerConfig define a producer
 type ProducerConfig struct {
-	GroupID     string
-	NameServer  string
-	Credentials *SessionCredentials
+	GroupID          string
+	NameServer       string
+	NameServerDomain string
+	GroupName        string
+	InstanceName     string
+	Credentials      *SessionCredentials
+
 
 Review comment:
   I think a base interface can be extracted, such as clientConfig

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services