-
Notifications
You must be signed in to change notification settings - Fork 68
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
request help: control API for go plugin #98
Comments
I can't get your point, do you want to register control api in go runner? Can you describe your use case in detail? |
我在apisix新增了一个自定义的go插件, 我希望这个插件能提供一个对内的api,从而让我的内部脚本可以通过http请求的方式调用,来触发插件内的一些缓存更新的逻辑。 |
You can start an http service in your own go-runner, expose your API, and then create a route in APISIX to protect your API interface. |
I need this feature too ;-) IMO, though exposing a new http service in the go-runner is a feasible solution, I do think that the APISIX control API is somewhere more suitable. |
Do you mean that the control api in APISIX can also take effect in go runner, or use golang alone to support control api in go runner? |
I mean, to register control api like what we can did in lua: https://apisix.apache.org/docs/apisix/plugin-develop/#register-control-api Maybe we should add another RPC event for this purpose. |
If we decide to implement this feature, IMO, we should support it in every language that APISIX supports: go, python and java. Not only golang |
If it is to implement the same feature as in Lua, it seems that it can only be supported in go-plugin-runner, and it is not necessary to add an RPC event to interact with APISIX. |
Issue description
What should I do if I want to use the control API in the go plugin? Or is there any other solution to achieve similar functions
Environment
uname -a
): linuxThe text was updated successfully, but these errors were encountered: