|
|
@@ -34,6 +34,18 @@ func Init(configPrefix string, configNamespace string, configName string, config
|
|
|
timeoutDuration = duration
|
|
|
}
|
|
|
|
|
|
+ if strutils.IsStringEmpty(namespace) {
|
|
|
+ return errors.New("namespace is empty")
|
|
|
+ }
|
|
|
+
|
|
|
+ if strutils.IsStringEmpty(name) {
|
|
|
+ return errors.New("name is empty")
|
|
|
+ }
|
|
|
+
|
|
|
+ if strutils.IsStringEmpty(baseUrl) {
|
|
|
+ return errors.New("baseUrl is empty")
|
|
|
+ }
|
|
|
+
|
|
|
prefix = configPrefix
|
|
|
namespace = configNamespace
|
|
|
name = configName
|