aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/grpc/naming/naming.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/grpc/naming/naming.go')
-rw-r--r--vendor/google.golang.org/grpc/naming/naming.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/vendor/google.golang.org/grpc/naming/naming.go b/vendor/google.golang.org/grpc/naming/naming.go
index 1af7e32..8cc39e9 100644
--- a/vendor/google.golang.org/grpc/naming/naming.go
+++ b/vendor/google.golang.org/grpc/naming/naming.go
@@ -18,20 +18,26 @@
18 18
19// Package naming defines the naming API and related data structures for gRPC. 19// Package naming defines the naming API and related data structures for gRPC.
20// The interface is EXPERIMENTAL and may be suject to change. 20// The interface is EXPERIMENTAL and may be suject to change.
21//
22// Deprecated: please use package resolver.
21package naming 23package naming
22 24
23// Operation defines the corresponding operations for a name resolution change. 25// Operation defines the corresponding operations for a name resolution change.
26//
27// Deprecated: please use package resolver.
24type Operation uint8 28type Operation uint8
25 29
26const ( 30const (
27 // Add indicates a new address is added. 31 // Add indicates a new address is added.
28 Add Operation = iota 32 Add Operation = iota
29 // Delete indicates an exisiting address is deleted. 33 // Delete indicates an existing address is deleted.
30 Delete 34 Delete
31) 35)
32 36
33// Update defines a name resolution update. Notice that it is not valid having both 37// Update defines a name resolution update. Notice that it is not valid having both
34// empty string Addr and nil Metadata in an Update. 38// empty string Addr and nil Metadata in an Update.
39//
40// Deprecated: please use package resolver.
35type Update struct { 41type Update struct {
36 // Op indicates the operation of the update. 42 // Op indicates the operation of the update.
37 Op Operation 43 Op Operation
@@ -43,12 +49,16 @@ type Update struct {
43} 49}
44 50
45// Resolver creates a Watcher for a target to track its resolution changes. 51// Resolver creates a Watcher for a target to track its resolution changes.
52//
53// Deprecated: please use package resolver.
46type Resolver interface { 54type Resolver interface {
47 // Resolve creates a Watcher for target. 55 // Resolve creates a Watcher for target.
48 Resolve(target string) (Watcher, error) 56 Resolve(target string) (Watcher, error)
49} 57}
50 58
51// Watcher watches for the updates on the specified target. 59// Watcher watches for the updates on the specified target.
60//
61// Deprecated: please use package resolver.
52type Watcher interface { 62type Watcher interface {
53 // Next blocks until an update or error happens. It may return one or more 63 // Next blocks until an update or error happens. It may return one or more
54 // updates. The first call should get the full set of the results. It should 64 // updates. The first call should get the full set of the results. It should