Skip to content
Snippets Groups Projects
Commit 5ffc8c27 authored by watermelo's avatar watermelo
Browse files

Merge branch 'featue/addCommentForMetadata' of...

Merge branch 'featue/addCommentForMetadata' of https://github.com/watermelo/dubbo-go into featue/addCommentForMetadata
parents b7371f74 1169ebfd
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ func joinParams(joinChar string, params []string) string {
return joinedStr
}
// getIdentifierKey will return string format is service:Version:Group:Side:param1:param2...
// getIdentifierKey returns string that format is service:Version:Group:Side:param1:param2...
func (mdi *BaseServiceMetadataIdentifier) getIdentifierKey(params ...string) string {
return mdi.serviceInterface +
constant.KEY_SEPARATOR + mdi.version +
......@@ -58,7 +58,7 @@ func (mdi *BaseServiceMetadataIdentifier) getIdentifierKey(params ...string) str
joinParams(constant.KEY_SEPARATOR, params)
}
// getFilePathKey will return string format is metadata/path/Version/Group/Side/param1/param2...
// getFilePathKey returns string that format is metadata/path/Version/Group/Side/param1/param2...
func (mdi *BaseServiceMetadataIdentifier) getFilePathKey(params ...string) string {
path := serviceToPath(mdi.serviceInterface)
......
......@@ -23,12 +23,12 @@ type MetadataIdentifier struct {
BaseMetadataIdentifier
}
// GetIdentifierKey will return string format is service:Version:Group:Side:Application
// GetIdentifierKey returns string that format is service:Version:Group:Side:Application
func (mdi *MetadataIdentifier) getIdentifierKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getIdentifierKey(mdi.application)
}
// GetFilePathKey will return string format is metadata/path/Version/Group/Side/Application
// GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Application
func (mdi *MetadataIdentifier) getFilePathKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getFilePathKey(mdi.application)
}
......@@ -28,12 +28,12 @@ type ServiceMetadataIdentifier struct {
BaseMetadataIdentifier
}
// GetIdentifierKey will return string format is service:Version:Group:Side:Protocol:"revision"+Revision
// GetIdentifierKey returns string that format is service:Version:Group:Side:Protocol:"revision"+Revision
func (mdi *ServiceMetadataIdentifier) getIdentifierKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getIdentifierKey(mdi.protocol + constant.KEY_REVISON_PREFIX + mdi.revision)
}
// GetFilePathKey will return string format is metadata/path/Version/Group/Side/Protocol/"revision"+Revision
// GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Protocol/"revision"+Revision
func (mdi *ServiceMetadataIdentifier) getFilePathKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getFilePathKey(mdi.protocol + constant.KEY_REVISON_PREFIX + mdi.revision)
}
......@@ -23,12 +23,12 @@ type SubscriberMetadataIdentifier struct {
BaseMetadataIdentifier
}
// GetIdentifierKey will return string format is service:Version:Group:Side:Revision
// GetIdentifierKey returns string that format is service:Version:Group:Side:Revision
func (mdi *SubscriberMetadataIdentifier) getIdentifierKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getIdentifierKey(mdi.revision)
}
// GetFilePathKey will return string format is metadata/path/Version/Group/Side/Revision
// GetFilePathKey returns string that format is metadata/path/Version/Group/Side/Revision
func (mdi *SubscriberMetadataIdentifier) getFilePathKey(params ...string) string {
return mdi.BaseMetadataIdentifier.getFilePathKey(mdi.revision)
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment