-
Notifications
You must be signed in to change notification settings - Fork 5.5k
listener: first implementation of an Api Listener #9516
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
d182cbe
wip: get an api listener at all costs
3c36ef8
fmt build
d91b112
building and worksgit add source/! :tada:
c6f2d8a
initial clean up. Builds, tested
31b8ecd
Merge branch 'master' into api-listener
cfa81d8
fmt
538d73c
back to singleton. ApiListener and ApiListenerHandle interfaces
ad81348
fmt
e617918
comments
efe5cff
comments split up
2760a21
move read callbacks outside of the lambda
1a57cf0
comment
d74abb6
fmt
5684186
change api listener to implemented
1427f3e
fixes
06d0043
Merge branch 'master' of https://github.com/envoyproxy/envoy into api…
3dd0b13
fmt
9f6094b
fmt, with clang-format 9
65e3a71
does this work with proto formatting?
c9f429b
change to implemented
c8f9658
Merge branch 'master' into api-listener
9647159
Merge branch 'master' into api-listener
dad95f6
remove acronym
25d9494
generated
45ec135
Merge branch 'master' into api-listener
542ceda
missing bazel deps
ae1442c
finish updating from merge
1df8a3e
comments
8354ad9
comments
8624c14
generated
6de2dbc
comments
1c68d73
accidental commit
f4e8d9e
Merge branch 'master' into api-listener
b2c9ba5
fmt
ce59043
comments
7ce32a5
fmt
6f242d9
Merge branch 'master' into api-listener
6e2ee13
bad merge
df69e8c
move stats back. my test will fail
0ce64d4
adjust
ed5e8e6
type
cacb666
fmt
c5f629a
test
ba3d861
spell
2116afa
stats
246eb28
Merge branch 'master' into api-listener
50cb982
Merge branch 'api-listener' of github.com:junr03/envoy into api-listener
e1c789e
comments and test
9b99e58
factory context
7d8ffe3
Merge branch 'master' into api-listener
cd640b3
hcm
63c3afb
Merge branch 'master' into api-listener
4d47fa5
optional reference_wrapper
516b71b
Merge branch 'master' into api-listener
835adbb
comments
77a5570
nits
7442f86
Merge branch 'master' into api-listener
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #pragma once | ||
|
|
||
| namespace Envoy { | ||
| namespace Server { | ||
|
|
||
| /** | ||
| * Handle provided to users to interact with Envoy via a particular API. | ||
| * Given the flexibility of the api_listener config, this interface is also maximally flexible. | ||
| * Consumers of this interface have to cast this handle to narrower types. | ||
| */ | ||
| class ApiListenerHandle { | ||
| public: | ||
| virtual ~ApiListenerHandle() = default; | ||
| }; | ||
|
|
||
| /** | ||
| * Listener that provides an API to interact with Envoy via a handle. | ||
| */ | ||
| class ApiListener { | ||
| public: | ||
| virtual ~ApiListener() = default; | ||
|
|
||
| /** | ||
| * An ApiListener is uniquely identified by its name. | ||
| * | ||
| * @return the name of the ApiListener. | ||
| */ | ||
| virtual absl::string_view name() const PURE; | ||
|
|
||
| /** | ||
| * @return a handle for interaction, nullptr if the Listener can not construct one. | ||
| */ | ||
| virtual ApiListenerHandle* handle() PURE; | ||
| }; | ||
|
|
||
| using ApiListenerPtr = std::unique_ptr<ApiListener>; | ||
|
|
||
| } // namespace Server | ||
| } // namespace Envoy | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.