Observer pattern for service registration interface (#8123)

* use observer pattern for service discovery

* update perf standby method

* fix test

* revert usersTags to being called serviceTags

* use previous consul code

* vault isnt a performance standby before starting

* log err

* changes from feedback

* add Run method to interface

* changes from feedback

* fix core test

* update example
This commit is contained in:
Becca Petrin
2020-01-24 09:42:03 -08:00
committed by GitHub
parent ae0892b3ce
commit d7d4084c86
13 changed files with 480 additions and 378 deletions

View File

@@ -161,7 +161,7 @@ var (
}
serviceRegistrations = map[string]sr.Factory{
"consul": csr.NewConsulServiceRegistration,
"consul": csr.NewServiceRegistration,
}
)