udp_listener: refactor ActiveUdpListener creation (#7884)
Signed-off-by: Dan Zhang <danzh@google.com> Mirrored from https://github.com/envoyproxy/envoy @ d39bd813a156989369597d69efd4e50489cfeebbpull/620/head
parent
47fd9e83c5
commit
d19f4a41af
4 changed files with 60 additions and 1 deletions
@ -0,0 +1,31 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.api.v2.listener; |
||||
|
||||
option java_outer_classname = "ListenerProto"; |
||||
option java_multiple_files = true; |
||||
option java_package = "io.envoyproxy.envoy.api.v2.listener"; |
||||
option go_package = "listener"; |
||||
option csharp_namespace = "Envoy.Api.V2.ListenerNS"; |
||||
option ruby_package = "Envoy::Api::V2::ListenerNS"; |
||||
|
||||
import "google/protobuf/struct.proto"; |
||||
import "google/protobuf/any.proto"; |
||||
|
||||
// [#protodoc-title: Udp Listener Config] |
||||
// Listener :ref:`configuration overview <config_listeners>` |
||||
|
||||
message UdpListenerConfig { |
||||
// Used to look up UDP listener factory, matches "raw_udp_listener" or |
||||
// "quic_listener" to create a specific udp listener. |
||||
// If not specified, treat as "raw_udp_listener". |
||||
string udp_listener_name = 1; |
||||
|
||||
// Used to create a specific listener factory. To some factory, e.g. |
||||
// "raw_udp_listener", config is not needed. |
||||
oneof config_type { |
||||
google.protobuf.Struct config = 2; |
||||
|
||||
google.protobuf.Any typed_config = 3; |
||||
} |
||||
} |
Loading…
Reference in new issue