更新 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 package types
type Etcd struct { type Etcd struct {
Endpoints []string `json:"endpoints"` Endpoints []string `yaml:"Endpoints"`
Tls EtcdTls `json:",optional"` Tls EtcdTls `yaml:"Tls"`
} }
type EtcdTls struct { type EtcdTls struct {
Ca string `json:"ca,optional"` Ca string `yaml:"Ca"`
Cert string `json:"cert,optional"` Cert string `yaml:"Cert"`
CertKey string `json:"cert_key,optional" ` CertKey string `yaml:"CertKey" `
} }