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: added serverless plugins. #86

Merged
merged 7 commits into from
Aug 26, 2019
Merged

Conversation

moonming
Copy link
Member

No description provided.

@moonming moonming changed the title feature: added serverless plugins. WIP: feature: added serverless plugins. Jun 13, 2019
@moonming moonming changed the title WIP: feature: added serverless plugins. feature: added serverless plugins. Jun 13, 2019
@membphis
Copy link
Member

Still not finished, is it?

@moonming moonming changed the title feature: added serverless plugins. WIP: feature: added serverless plugins. Jun 14, 2019
@moonming moonming changed the title WIP: feature: added serverless plugins. feature: added serverless plugins. Aug 25, 2019
@moonming moonming merged commit 8160483 into apache:master Aug 26, 2019

local index = 1
for _, func_str in ipairs(functions) do
local _, func = pcall(loadstring(func_str))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it maybe failed, we need to capture the error message.

},
functions = {
type = "array",
items = {type = "string"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing check to functions, it should be a valid Lua code.

local loadstring = loadstring
local require = require

return function(plugin_name, priority)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this style, how about to use new method to create new instance?

@moonming moonming added this to the 0.7 milestone Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants