github.com/stackdocker/rkt@v0.10.1-0.20151109095037-1aa827478248/Godeps/_workspace/src/google.golang.org/grpc/naming/naming.go (about) 1 package naming 2 3 // Resolver dose name resolution and watches for the resolution changes. 4 type Resolver interface { 5 // Get gets a snapshot of the current name resolution results for target. 6 Get(target string) map[string]string 7 // Watch watches for the name resolution changes on target. It blocks until Stop() is invoked. The watch results are obtained via GetUpdate(). 8 Watch(target string) 9 // GetUpdate returns a name resolution change when watch is triggered. It blocks until it observes a change. The caller needs to call it again to get the next change. 10 GetUpdate() (string, string) 11 // Stop shuts down the NameResolver. 12 Stop() 13 }