You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/26 09:52:44 UTC

[GitHub] [dubbo-go] AlexStocks commented on a change in pull request #1339: Use class name as the default reference name

AlexStocks commented on a change in pull request #1339:
URL: https://github.com/apache/dubbo-go/pull/1339#discussion_r676457184



##########
File path: common/rpc_service.go
##########
@@ -42,6 +42,32 @@ type RPCService interface {
 	Reference() string
 }
 
+// GetReference return the reference id of the service.
+// If the service implemented the RPCService interface,
+// it will call the Reference method; if not, it will
+// return the struct name as the reference id.
+func GetReference(service interface{}) string {

Review comment:
       // GetReference returns the reference id of the service.
   // If the service implemented the RPCService interface,
   // it will call the Reference method. If not, it will
   // return the struct name as the reference id.




-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org