mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
feat(nacos-sd): add auth and filtering parameters for Nacos service d… (#4099)
Co-authored-by: Logic <zqr10159@dromara.org>
This commit is contained in:
+12
-1
@@ -52,7 +52,18 @@ public class NacosSdProtocol implements Protocol {
|
||||
* Nacos password for authentication
|
||||
*/
|
||||
private String password;
|
||||
|
||||
|
||||
/**
|
||||
* Nacos Service Name
|
||||
*/
|
||||
private String serviceName;
|
||||
|
||||
/**
|
||||
* Nacos Group Name
|
||||
*/
|
||||
|
||||
private String groupName;
|
||||
|
||||
/**
|
||||
* Check if the essential protocol parameters are invalid
|
||||
* @return true if essential parameters are missing
|
||||
|
||||
+6
@@ -40,6 +40,12 @@ public class RegistryProtocol implements CommonRequestProtocol, Protocol {
|
||||
private String port;
|
||||
private String discoveryClientTypeName;
|
||||
|
||||
private String username;
|
||||
private String password;
|
||||
private String namespace;
|
||||
private String serviceName;
|
||||
private String groupName;
|
||||
|
||||
@Override
|
||||
public boolean isInvalid() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user