diff options
Diffstat (limited to 'vendor/google.golang.org/grpc/naming/naming.go')
-rw-r--r-- | vendor/google.golang.org/grpc/naming/naming.go | 12 |
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. | ||
21 | package naming | 23 | package 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. | ||
24 | type Operation uint8 | 28 | type Operation uint8 |
25 | 29 | ||
26 | const ( | 30 | const ( |
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. | ||
35 | type Update struct { | 41 | type 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. | ||
46 | type Resolver interface { | 54 | type 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. | ||
52 | type Watcher interface { | 62 | type 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 |