accountregistry.go 261 B

12345678
  1. package discov
  2. import "github.com/tal-tech/go-zero/core/discov/internal"
  3. // RegisterAccount registers the username/password to the given etcd cluster.
  4. func RegisterAccount(endpoints []string, user, pass string) {
  5. internal.AddAccount(endpoints, user, pass)
  6. }