api: factor out discovery request/response commonalities. (#80)
This PR allows for easier implementation of a unified subscription model in Envoy for gRPC/REST/inotify filesystem config updates: * The DiscoveryRequest basically looks the same in all subscription APIs today, so factored out to DiscoveryRequest. * xDiscoveryResponse now uses a consistent convention. This will allow C++ template level duck typing to populate the response in a single implementation for all APIs. This is mostly relevant for the filesystem watch implementation, where we need to map from resource names to file paths, but could also make API server implementation easier potentially.pull/82/head
parent
5e8fe4b392
commit
803dd0a589
5 changed files with 34 additions and 52 deletions
Loading…
Reference in new issue