forked from aeraki-mesh/meta-protocol-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.cc
26 lines (21 loc) · 740 Bytes
/
config.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "envoy/registry/registry.h"
#include "src/meta_protocol_proxy/codec/factory.h"
#include "src/application_protocols/dubbo/config.h"
#include "src/application_protocols/dubbo/dubbo_codec.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace MetaProtocolProxy {
namespace Dubbo {
MetaProtocolProxy::CodecPtr DubboCodecConfig::createCodec(const Protobuf::Message&) {
return std::make_unique<Dubbo::DubboCodec>();
};
/**
* Static registration for the dubbo codec. @see RegisterFactory.
*/
REGISTER_FACTORY(DubboCodecConfig, MetaProtocolProxy::NamedCodecConfigFactory);
} // namespace Dubbo
} // namespace MetaProtocolProxy
} // namespace NetworkFilters
} // namespace Extensions
} // namespace Envoy