Skip to content
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

Feature: Golang Http Tcp Bridge #36667

Open
wants to merge 65 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
01813c1
support golang tcp extension for http2tcp
Oct 17, 2024
ed300bb
Merge pull request #8 from duxin40/main-merge
duxin40 Oct 17, 2024
1386488
merge code of opensource main
Oct 17, 2024
6946c93
rollback go package version to follow opensource code
Oct 17, 2024
7ae6768
fix error for tests
Oct 17, 2024
a60f4fa
fix error for tests
Oct 17, 2024
e8234db
add example for http2dubbo by golang extension on envoy
Oct 21, 2024
17bc4a4
delete unused code
Oct 21, 2024
4b5880c
add new blank line
Oct 21, 2024
4abfe0a
Optimize http2dubbo example
Oct 21, 2024
da41130
format example code
Oct 21, 2024
1c35411
format example code
Oct 21, 2024
98e1589
support EncodeHeaders for goalng tcp upstream extension
Oct 22, 2024
9bb967c
1.support set buffer for writing upstream data 2.support specify cust…
Oct 30, 2024
0b7fde5
1. add example for http2dubbo by golang-tcp-upstream-extension. 2. op…
Oct 31, 2024
5898f45
optimize http2dubbo example
Nov 1, 2024
7c21160
optimize annotation for http2dubbo example
Nov 1, 2024
de5d85d
delete ununsed file
Nov 1, 2024
1d2d0ac
optimize annotation for http2dubbo example
Nov 1, 2024
152118b
support unique ptr for tcp_upstream and tcp_conn_pool
Nov 11, 2024
08bb49e
optimize code
Nov 11, 2024
c92c078
1.add destructor func for tcp upstream and filter. 2.optimize code
Nov 12, 2024
0cc11de
optimize logic for upstream config
Nov 12, 2024
8187006
optimize and delete unuse code
Nov 12, 2024
c056752
1. remove weak_filter of async, and use sync clearly bteween go and c++.
Nov 20, 2024
28b8111
delete unused code
Nov 20, 2024
2d1abdd
simplify & optimize status and state
Nov 21, 2024
185818c
support full-duplex
Nov 21, 2024
9dd2d0c
add notes for status and fix bug
Nov 22, 2024
65e4796
add docks for golang tcp upstream filter
Nov 28, 2024
1260dd7
optimize envoyGoTcpUpstreamDestroyPluginConfig and envoyGoOnTcpUpstre…
Dec 2, 2024
bc83d9b
delete state.doDataList in encodeHeaders and encodeData
Dec 2, 2024
8cf3668
optimize annotation
Dec 2, 2024
be318e2
delete unused go code
Dec 2, 2024
75a9c41
delete unused code
Dec 2, 2024
d3a44cf
optimize code
Dec 2, 2024
58d24c3
update doc and example
Dec 5, 2024
24480de
delete processState
Dec 9, 2024
663afc8
Revert "delete processState"
Dec 11, 2024
a8fa562
optimize code
Dec 13, 2024
2c47930
Merge branch 'main' into main
duxin40 Dec 13, 2024
6872fc5
optimize code
Dec 13, 2024
e7eb50b
delete unused log
Dec 13, 2024
143875b
optimize about mutex and panic
Dec 14, 2024
0714aa7
simplfy logic about panic
Dec 15, 2024
6541f8d
optimize code
Dec 17, 2024
79401ba
optimize code
Dec 18, 2024
613a192
fix memory leaking
Dec 20, 2024
6d54120
optimize annoation
Dec 20, 2024
fd60445
format code
Dec 23, 2024
b32eabe
format code
Dec 23, 2024
7eaef90
fix ci problem
Dec 24, 2024
ac75587
remove lock since the plugin is sync-data-flow between c and go
Dec 31, 2024
4595abd
optimize code about panic
Jan 4, 2025
ad43324
terminate the stream when get panic
Jan 4, 2025
e314824
add integration test for golang-http-tcp-bridge
Jan 8, 2025
0dc67d0
fix ci problem
Jan 9, 2025
3869b18
optimize doc
Jan 9, 2025
1fbe401
format code
Jan 9, 2025
248045f
optimize annotation and merge multiple test go mods into a single one
Jan 13, 2025
c8942ba
add go.mod for test_data
Jan 13, 2025
e12539d
add a test for add_data
Jan 13, 2025
a4ef3f6
format code
Jan 13, 2025
914297e
Merge branch 'main' into main
duxin40 Jan 19, 2025
8adb4d8
format code and doc
Jan 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ proto_library(
"//contrib/envoy/extensions/private_key_providers/qat/v3alpha:pkg",
"//contrib/envoy/extensions/regex_engines/hyperscan/v3alpha:pkg",
"//contrib/envoy/extensions/router/cluster_specifier/golang/v3alpha:pkg",
"//contrib/envoy/extensions/upstreams/http/tcp/golang/v3alpha:pkg",
"//contrib/envoy/extensions/vcl/v3alpha:pkg",
"//envoy/admin/v3:pkg",
"//envoy/config/accesslog/v3:pkg",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py.

load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")

licenses(["notice"]) # Apache 2

api_proto_package(
deps = ["@com_github_cncf_xds//udpa/annotations:pkg"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
syntax = "proto3";

package envoy.extensions.upstreams.http.tcp.golang.v3alpha;

import "google/protobuf/any.proto";

import "udpa/annotations/status.proto";
import "validate/validate.proto";

option java_package = "io.envoyproxy.envoy.extensions.upstreams.http.tcp.golang.v3alpha";
option java_outer_classname = "GolangProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/contrib/envoy/extensions/upstreams/http/tcp/golang/v3alpha";
option (udpa.annotations.file_status).package_version_status = ACTIVE;

// [#protodoc-title: Tcp Connection Pool]

// A connection pool which forwards downstream HTTP as TCP to upstream,
// [#extension: envoy.upstreams.http.tcp]
message Config {
// Globally unique ID for a dynamic library file.
string library_id = 1 [(validate.rules).string = {min_len: 1}];

// Path to a dynamic library implementing the
// :repo:`DownstreamFilter API <contrib/golang/common/go/api.DownstreamFilter>`
// interface.
// [#comment:TODO(wangfakang): Support for downloading libraries from remote repositories.]
string library_path = 2 [(validate.rules).string = {min_len: 1}];

// Globally unique name of the Go plugin.
//
// This name **must** be consistent with the name registered in ``tcp::RegisterTcpUpstreamFactoryAndConfigParser``
//
string plugin_name = 3 [(validate.rules).string = {min_len: 1}];
duxin40 marked this conversation as resolved.
Show resolved Hide resolved

// Configuration for the Go plugin.
//
// .. note::
// This configuration is only parsed in the go plugin, and is therefore not validated
// by Envoy.
//
// See the :repo:`DownstreamFilter API <contrib/golang/common/go/api/filter.go>`
// for more information about how the plugin's configuration data can be accessed.
//
google.protobuf.Any plugin_config = 4;
}
1 change: 1 addition & 0 deletions api/versioning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ proto_library(
"//contrib/envoy/extensions/private_key_providers/qat/v3alpha:pkg",
"//contrib/envoy/extensions/regex_engines/hyperscan/v3alpha:pkg",
"//contrib/envoy/extensions/router/cluster_specifier/golang/v3alpha:pkg",
"//contrib/envoy/extensions/upstreams/http/tcp/golang/v3alpha:pkg",
"//contrib/envoy/extensions/vcl/v3alpha:pkg",
"//envoy/admin/v3:pkg",
"//envoy/config/accesslog/v3:pkg",
Expand Down
1 change: 1 addition & 0 deletions contrib/contrib_build_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONTRIB_EXTENSIONS = {
"envoy.filters.network.postgres_proxy": "//contrib/postgres_proxy/filters/network/source:config",
"envoy.filters.network.rocketmq_proxy": "//contrib/rocketmq_proxy/filters/network/source:config",
"envoy.filters.network.golang": "//contrib/golang/filters/network/source:config",
"envoy.upstreams.http.tcp.golang": "//contrib/golang/upstreams/http/tcp/source:config",

#
# Sip proxy
Expand Down
48 changes: 48 additions & 0 deletions contrib/golang/common/dso/dso.cc
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,53 @@ void NetworkFilterDsoImpl::envoyGoFilterOnSemaDec(void* w) {
envoy_go_filter_on_sema_dec_(w);
}

TcpUpstreamDsoImpl::TcpUpstreamDsoImpl(const std::string dso_name)
: TcpUpstreamDso(dso_name) {
loaded_ &= dlsymInternal<decltype(envoy_go_on_tcp_upstream_config_)>(
envoy_go_on_tcp_upstream_config_, handler_, dso_name,
"envoyGoOnTcpUpstreamConfig");
loaded_ &= dlsymInternal<decltype(envoy_go_tcp_upstream_destroy_plugin_config_)>(
envoy_go_tcp_upstream_destroy_plugin_config_, handler_, dso_name,
"envoyGoTcpUpstreamDestroyPluginConfig");
loaded_ &= dlsymInternal<decltype(envoy_go_encode_header_)>(
envoy_go_encode_header_, handler_, dso_name, "envoyGoEncodeHeader");
loaded_ &= dlsymInternal<decltype(envoy_go_on_encode_data_)>(
envoy_go_on_encode_data_, handler_, dso_name, "envoyGoEncodeData");
loaded_ &= dlsymInternal<decltype(envoy_go_on_upstream_data_)>(
envoy_go_on_upstream_data_, handler_, dso_name, "envoyGoOnUpstreamData");
loaded_ &= dlsymInternal<decltype(envoy_go_on_tcp_upstream_destroy_)>(
envoy_go_on_tcp_upstream_destroy_, handler_, dso_name, "envoyGoOnTcpUpstreamDestroy");
}

GoUint64 TcpUpstreamDsoImpl::envoyGoOnTcpUpstreamConfig(httpConfig* p0) {
ASSERT(envoy_go_on_tcp_upstream_config_ != nullptr);
return envoy_go_on_tcp_upstream_config_(p0);
}

void TcpUpstreamDsoImpl::envoyGoTcpUpstreamDestroyPluginConfig(GoUint64 p0) {
ASSERT(envoy_go_tcp_upstream_destroy_plugin_config_ != nullptr);
return envoy_go_tcp_upstream_destroy_plugin_config_(p0);
}

GoUint64 TcpUpstreamDsoImpl::envoyGoEncodeHeader(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) {
ASSERT(envoy_go_encode_header_ != nullptr);
return envoy_go_encode_header_(state, end_stream, header_num, header_bytes, buf_ptr, buf_len);
}

GoUint64 TcpUpstreamDsoImpl::envoyGoEncodeData(processState* state, GoUint64 end_stream, GoUint64 buf_ptr, GoUint64 buf_len) {
ASSERT(envoy_go_on_upstream_data_ != nullptr);
return envoy_go_on_encode_data_(state, end_stream, buf_ptr, buf_len);
}

GoUint64 TcpUpstreamDsoImpl::envoyGoOnUpstreamData(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) {
ASSERT(envoy_go_on_upstream_data_ != nullptr);
return envoy_go_on_upstream_data_(state, end_stream, header_num, header_bytes, buf_ptr, buf_len);
}

void TcpUpstreamDsoImpl::envoyGoOnTcpUpstreamDestroy(httpRequest* p0) {
ASSERT(envoy_go_on_tcp_upstream_destroy_ != nullptr);
envoy_go_on_tcp_upstream_destroy_(p0);
}

} // namespace Dso
} // namespace Envoy
54 changes: 54 additions & 0 deletions contrib/golang/common/dso/dso.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,60 @@ class NetworkFilterDsoImpl : public NetworkFilterDso {

using NetworkFilterDsoPtr = std::shared_ptr<NetworkFilterDso>;


class TcpUpstreamDso : public Dso {
public:
TcpUpstreamDso() = default;
TcpUpstreamDso(const std::string dso_name) : Dso(dso_name){};
~TcpUpstreamDso() override = default;

virtual GoUint64 envoyGoOnTcpUpstreamConfig(httpConfig* p0) PURE;

virtual void envoyGoTcpUpstreamDestroyPluginConfig(GoUint64 p0) PURE;

virtual GoUint64 envoyGoEncodeHeader(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) PURE;

virtual GoUint64 envoyGoEncodeData(processState* state, GoUint64 end_stream, GoUint64 buf_ptr, GoUint64 buf_len) PURE;

virtual GoUint64 envoyGoOnUpstreamData(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) PURE;

virtual void envoyGoOnTcpUpstreamDestroy(httpRequest* p0) PURE;

};

class TcpUpstreamDsoImpl : public TcpUpstreamDso {
public:
TcpUpstreamDsoImpl(const std::string dso_name);
~TcpUpstreamDsoImpl() override = default;

GoUint64 envoyGoOnTcpUpstreamConfig(httpConfig* p0) override;

void envoyGoTcpUpstreamDestroyPluginConfig(GoUint64 p0) override;

GoUint64 envoyGoEncodeHeader(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) override;

GoUint64 envoyGoEncodeData(processState* state, GoUint64 end_stream, GoUint64 buf_ptr, GoUint64 buf_len) override;

GoUint64 envoyGoOnUpstreamData(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len) override;

void envoyGoOnTcpUpstreamDestroy(httpRequest* p0) override;

private:
GoUint64 (*envoy_go_on_tcp_upstream_config_)(httpConfig* p0) = {nullptr};

void (*envoy_go_tcp_upstream_destroy_plugin_config_)(GoUint64 p0) = {nullptr};

GoUint64 (*envoy_go_encode_header_)(processState* p0, GoUint64 p1, GoUint64 p2, GoUint64 p3, GoUint64 buf_ptr, GoUint64 buf_len) = {nullptr};

GoUint64 (*envoy_go_on_encode_data_)(processState* state, GoUint64 end_stream, GoUint64 buf_ptr, GoUint64 buf_len) = {nullptr};

GoUint64 (*envoy_go_on_upstream_data_)(processState* state, GoUint64 end_stream, GoUint64 header_size, GoUint64 header_byte_size, GoUint64 buf_ptr, GoUint64 buf_len) = {nullptr};

void (*envoy_go_on_tcp_upstream_destroy_)(httpRequest* p0) = {nullptr};
};

using TcpUpstreamDsoPtr = std::shared_ptr<TcpUpstreamDso>;

/*
* We do not unload a dynamic library once it is loaded. This is because
* Go shared library could not be unload by dlclose yet, see:
Expand Down
25 changes: 25 additions & 0 deletions contrib/golang/common/dso/libgolang.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,31 @@ extern GoUint64 envoyGoFilterOnUpstreamData(void* f, GoUint64 data_size, GoUint6
// github.com/envoyproxy/envoy/contrib/golang/filters/network/source/go/pkg/network.envoyGoFilterOnUpstreamEvent
extern void envoyGoFilterOnUpstreamEvent(void* f, GoInt event);

// go:linkname envoyGoOnTcpUpstreamConfig
// github.com/envoyproxy/envoy/contrib/golang/filters/upstreams/http/tcp/source/go/pkg/upstreams/http/tcp.envoyGoOnTcpUpstreamConfig
extern GoUint64 envoyGoOnTcpUpstreamConfig(GoUint64 library_id_ptr, GoUint64 library_id_len,
GoUint64 config_ptr, GoUint64 config_len);

// go:linkname envoyGoTcpUpstreamDestroyHttpPluginConfig
// github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go/pkg/http.envoyGoTcpUpstreamDestroyPluginConfig
extern void envoyGoTcpUpstreamDestroyPluginConfig(GoUint64 id);

// go:linkname envoyGoEncodeHeader
// github.com/envoyproxy/envoy/contrib/golang/filters/upstreams/http/tcp/source/go/pkg/upstreams/http/tcp.envoyGoEncodeHeader
extern GoUint64 envoyGoEncodeHeader(processState* r, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len);

// go:linkname envoyGoEncodeData
// github.com/envoyproxy/envoy/contrib/golang/filters/upstreams/http/tcp/source/go/pkg/upstreams/http/tcp.envoyGoEncodeData
extern GoUint64 envoyGoEncodeData(processState* state, GoUint64 end_stream, GoUint64 buf_ptr, GoUint64 buf_len);

// go:linkname envoyGoOnUpstreamData
// github.com/envoyproxy/envoy/contrib/golang/filters/upstreams/http/tcp/source/go/pkg/upstreams/http/tcp.envoyGoOnUpstreamData
extern GoUint64 envoyGoOnUpstreamData(processState* state, GoUint64 end_stream, GoUint64 header_num, GoUint64 header_bytes, GoUint64 buf_ptr, GoUint64 buf_len);

// go:linkname envoyGoOnTcpUpstreamDestroy
// github.com/envoyproxy/envoy/contrib/golang/filters/upstreams/http/tcp/source/go/pkg/upstreams/http/tcp.envoyGoOnTcpUpstreamDestroy
extern void envoyGoOnTcpUpstreamDestroy(httpRequest* r);

#ifdef __cplusplus
}
#endif
10 changes: 10 additions & 0 deletions contrib/golang/common/go/api/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ CAPIStatus envoyGoFilterSetFilterState(void* wrapper, void* key, void* value, in
int life_span, int stream_sharing);
CAPIStatus envoyGoFilterGetFilterState(void* wrapper, void* key, void* value);

// tcp upstream
CAPIStatus envoyGoTcpUpstreamCopyHeaders(void* s, void* strs, void* buf);
CAPIStatus envoyGoTcpUpstreamSetRespHeader(void* s, void* key_data, int key_len, void* value_data, int value_len, headerAction action);
CAPIStatus envoyGoTcpUpstreamRemoveRespHeader(void* s, void* key_data, int key_len);
CAPIStatus envoyGoTcpUpstreamGetBuffer(void* s, uint64_t buffer, void* value);
CAPIStatus envoyGoTcpUpstreamDrainBuffer(void* s, uint64_t buffer, uint64_t length);
CAPIStatus envoyGoTcpUpstreamSetBufferHelper(void* s, uint64_t buffer, void* data, int length, bufferAction action);
CAPIStatus envoyGoTcpUpstreamGetStringValue(void* r, int id, uint64_t* value_data, int* value_len);
CAPIStatus envoyGoTcpUpstreamSetSelfHalfCloseForUpstreamConn(void* r, int enabled);

#ifdef __cplusplus
} // extern "C"
#endif
16 changes: 16 additions & 0 deletions contrib/golang/common/go/api/capi.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ type NetworkCAPI interface {
UpstreamInfo(f unsafe.Pointer, infoType int) string
}

type TcpUpstreamCAPI interface {
// Header related
CopyHeaders(s unsafe.Pointer, num uint64, bytes uint64) map[string][]string
SetRespHeader(s unsafe.Pointer, key string, value string, add bool)
RemoveRespHeader(s unsafe.Pointer, key string)
// Buffer related
GetBuffer(s unsafe.Pointer, bufferPtr uint64, length uint64) []byte
DrainBuffer(s unsafe.Pointer, bufferPtr uint64, length uint64)
SetBufferHelper(s unsafe.Pointer, bufferPtr uint64, value string, action BufferAction)
SetBytesBufferHelper(s unsafe.Pointer, bufferPtr uint64, value []byte, action BufferAction)
// Get the specified value by key
GetStringValue(r unsafe.Pointer, id int) (string, bool)

SetSelfHalfCloseForUpstreamConn(r unsafe.Pointer, enabled int)
}

type CommonCAPI interface {
Log(level LogType, message string)
LogLevel() LogType
Expand Down
55 changes: 55 additions & 0 deletions contrib/golang/common/go/api/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ type (
EmptyDownstreamFilter struct{}
// EmptyUpstreamFilter provides the no-op implementation of the UpstreamFilter interface
EmptyUpstreamFilter struct{}
// EmptyTcpUpstreamFilter provides the no-op implementation of the EmptyTcpUpstreamFilter interface
EmptyTcpUpstreamFilter struct{}

PassThroughTcpUpstream struct {
EmptyTcpUpstreamFilter
}
)

// request
Expand Down Expand Up @@ -336,3 +342,52 @@ type GaugeMetric interface {
// TODO
type HistogramMetric interface {
}

type TcpUpstreamCallbackHandler interface {
// GetRouteName returns the name of the route which got matched
GetRouteName() string
// GetVirtualClusterName returns the name of the virtual cluster which got matched
GetVirtualClusterName() string
// SetSelfHalfCloseForUpstreamConn default is false
SetSelfHalfCloseForUpstreamConn(enabled bool)
}

type TcpUpstreamFilter interface {

// Invoked when header is delivered from the downstream.
// Notice: headerMap and dataToUpstream cannot be invoked after the func return.
EncodeHeaders(headerMap RequestHeaderMap, dataToUpstream BufferInstance, endOfStream bool) TcpUpstreamStatus

// Streaming, Invoked when data is delivered from the downstream.
// Notice: buffer cannot be invoked after the func return.
EncodeData(buffer BufferInstance, endOfStream bool) TcpUpstreamStatus

// Streaming, Called when data is read on from tcp upstream.
// Notice-1: when return TcpUpstreamContinue, resp headers will be send to http all at once; from then on, you MUST NOT invoke responseHeaderForSet at any time(or you will get panic).
// Notice-2: responseHeaderForSet and buffer cannot be invoked after the func return.
OnUpstreamData(responseHeaderForSet ResponseHeaderMap, buffer BufferInstance, endOfStream bool) TcpUpstreamStatus

// destroy filter
OnDestroy()
}

func (*EmptyTcpUpstreamFilter) EncodeHeaders(headerMap RequestHeaderMap, dataToUpstream BufferInstance, endOfStream bool) TcpUpstreamStatus {
return TcpUpstreamContinue
}

func (*EmptyTcpUpstreamFilter) EncodeData(buffer BufferInstance, endOfStream bool) TcpUpstreamStatus {
return TcpUpstreamContinue
}

func (*EmptyTcpUpstreamFilter) OnUpstreamData(responseHeaderForSet ResponseHeaderMap, buffer BufferInstance, endOfStream bool) TcpUpstreamStatus {
return TcpUpstreamContinue
}

func (*EmptyTcpUpstreamFilter) OnDestroy() {
}

type TcpUpstreamFactory func(config interface{}, callbacks TcpUpstreamCallbackHandler) TcpUpstreamFilter

type TcpUpstreamConfigParser interface {
Parse(any *anypb.Any) (interface{}, error)
}
Loading
Loading