提交 4ec77d7e authored 作者: mooncake9527's avatar mooncake9527

update

上级 4bbc8209
差异被折叠。
package onacos package onacos
type NacosConfig struct { type NacosConfig struct {
IPs []string `yaml:"ips"` IPs []string `yaml:"ips" json:"ips"`
Port int `yaml:"port"` Port int `yaml:"port" json:"port"`
Conf NacosConfConfig `yaml:"conf"` Conf NacosConfConfig `yaml:"conf" json:"conf"`
Rd NacosSvcConfig `yaml:"rd"` Rd NacosSvcConfig `yaml:"rd" json:"rd"`
} }
type NacosConfConfig struct { type NacosConfConfig struct {
Namespace string `yaml:"namespace"` Namespace string `yaml:"namespace" json:"namespace"`
ContextPath string `yaml:"context"` ContextPath string `yaml:"context" json:"context"`
DataID string `yaml:"dataId"` DataID string `yaml:"dataId" json:"dataId"`
Group string `yaml:"group"` Group string `yaml:"group" json:"group"`
} }
type NacosSvcConfig struct { type NacosSvcConfig struct {
IP string `yaml:"ip"` IP string `yaml:"ip" json:"ip"`
Port int `yaml:"port"` Port int `yaml:"port" json:"port"`
ServiceName string `yaml:"serviceName"` ServiceName string `yaml:"serviceName" json:"serviceName"`
GroupName string `yaml:"groupName"` GroupName string `yaml:"groupName" json:"groupName"`
ClusterName string `yaml:"clusterName"` ClusterName string `yaml:"clusterName" json:"clusterName"`
Weight int `yaml:"weight"` Weight int `yaml:"weight" json:"weight"`
Enable bool `yaml:"enable"` Enable bool `yaml:"enable" json:"enable"`
Healthy bool `yaml:"healthy"` Healthy bool `yaml:"healthy" json:"healthy"`
Ephemeral bool `yaml:"ephemeral"` Ephemeral bool `yaml:"ephemeral" json:"ephemeral"`
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论