github.com/lingyao2333/mo-zero@v1.4.1/core/discov/accountregistry.go (about) 1 package discov 2 3 import "github.com/lingyao2333/mo-zero/core/discov/internal" 4 5 // RegisterAccount registers the username/password to the given etcd cluster. 6 func RegisterAccount(endpoints []string, user, pass string) { 7 internal.AddAccount(endpoints, user, pass) 8 } 9 10 // RegisterTLS registers the CertFile/CertKeyFile/CACertFile to the given etcd. 11 func RegisterTLS(endpoints []string, certFile, certKeyFile, caFile string, 12 insecureSkipVerify bool) error { 13 return internal.AddTLS(endpoints, certFile, certKeyFile, caFile, insecureSkipVerify) 14 }