-
Notifications
You must be signed in to change notification settings - Fork 4.6k
xds/internal: remove Generic resource Decoder and add concrete functions #8652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
127107b
e8d0567
a5d8b85
1b12d28
d4221a6
8077a78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,18 +19,13 @@ package xdsclient | |
|
|
||
| import ( | ||
| "google.golang.org/grpc/internal/xds/clients/xdsclient" | ||
| "google.golang.org/grpc/internal/xds/xdsclient/xdsresource" | ||
| ) | ||
|
|
||
| // WatchResource uses xDS to discover the resource associated with the provided | ||
| // resource name. The resource type implementation determines how xDS responses | ||
| // are are deserialized and validated, as received from the xDS management | ||
| // server. Upon receipt of a response from the management server, an | ||
| // appropriate callback on the watcher is invoked. | ||
| func (c *clientImpl) WatchResource(rType xdsresource.Type, resourceName string, watcher xdsresource.ResourceWatcher) (cancel func()) { | ||
| return c.XDSClient.WatchResource(rType.TypeURL(), resourceName, xdsresource.GenericResourceWatcher(watcher)) | ||
| } | ||
|
|
||
| func (c *clientImpl) WatchResourceV2(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) { | ||
| func (c *clientImpl) WatchResource(typeURL, resourceName string, watcher xdsclient.ResourceWatcher) (cancel func()) { | ||
|
||
| return c.XDSClient.WatchResource(typeURL, resourceName, watcher) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.