更新 types/etcd.go

This commit is contained in:
yanweidong 2024-10-03 20:35:48 +08:00
parent a8efe29c7f
commit d645a49c97
1 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
package types
type Etcd struct {
Endpoints []string `json:"endpoints"`
Tls EtcdTls `json:",optional"`
Endpoints []string `yaml:"Endpoints"`
Tls EtcdTls `yaml:"Tls"`
}
type EtcdTls struct {
Ca string `json:"ca,optional"`
Cert string `json:"cert,optional"`
CertKey string `json:"cert_key,optional" `
Ca string `yaml:"Ca"`
Cert string `yaml:"Cert"`
CertKey string `yaml:"CertKey" `
}