package naming
import "k8s.io/kubernetes/Godeps/_workspace/src/google.golang.org/grpc/naming"
Index ¶
Types ¶
type Resolver ¶
type Resolver interface { // Get gets a snapshot of the current name resolution results for target. Get(target string) map[string]string // Watch watches for the name resolution changes on target. It blocks until Stop() is invoked. The watch results are obtained via GetUpdate(). Watch(target string) // 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. GetUpdate() (string, string) // Stop shuts down the NameResolver. Stop() }
Resolver dose name resolution and watches for the resolution changes.
Source Files ¶
naming.go
Directories ¶
Path | Synopsis |
---|---|
Godeps/_workspace/src/google.golang.org/grpc/naming/etcd |
- Version
- v1.2.0-alpha.5
- Published
- Dec 15, 2015
- Platform
- js/wasm
- Last checked
- 9 minutes ago –
Tools for package owners.