API RPC配置增加disableUpdate,可以停用自动更新API节点

This commit is contained in:
刘祥超
2022-07-21 14:06:38 +08:00
parent 515a590681
commit 2b650fd285
5 changed files with 32 additions and 18 deletions

View File

@@ -1,10 +1,11 @@
package configs
// 集群配置
// ClusterConfig 集群配置
type ClusterConfig struct {
RPC struct {
Endpoints []string `yaml:"endpoints"`
Endpoints []string `yaml:"endpoints"`
DisableUpdate bool `yaml:"disableUpdate"`
} `yaml:"rpc"`
ClusterId string `yaml:"clusterId"`
Secret string `yaml:"secret"`
Secret string `yaml:"secret"`
}