1
#include "envoy/registry/registry.h"
2

            
3
#include "source/extensions/common/wasm/wasm_runtime_factory.h"
4

            
5
#include "include/proxy-wasm/null.h"
6

            
7
namespace Envoy {
8
namespace Extensions {
9
namespace Common {
10
namespace Wasm {
11

            
12
class NullRuntimeFactory : public WasmRuntimeFactory {
13
public:
14
99
  WasmVmPtr createWasmVm() override { return proxy_wasm::createNullVm(); }
15

            
16
96
  std::string name() const override { return "envoy.wasm.runtime.null"; }
17
};
18

            
19
REGISTER_FACTORY(NullRuntimeFactory, WasmRuntimeFactory);
20

            
21
} // namespace Wasm
22
} // namespace Common
23
} // namespace Extensions
24
} // namespace Envoy