1
0

init commit

This commit is contained in:
2022-11-01 23:31:14 +08:00
commit 57c2c6a22e
26 changed files with 2208 additions and 0 deletions

15
plugins/entry.lua Normal file
View File

@@ -0,0 +1,15 @@
local plugin = require("core.plugin")
function envoy_on_request(request_handle)
local conf = request_handle:metadata():get("plugins")
if conf then
plugin.run(request_handle, "request", conf)
end
end
function envoy_on_response(response_handle)
local conf = response_handle:metadata():get("plugins")
if conf then
plugin.run(response_handle, "response", conf)
end
end