-
Notifications
You must be signed in to change notification settings - Fork 0
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
Discuss: Make SIRIS more Plugin Compatible. #3
Comments
ping @theodesp, @Allendar, @Andersbiha, @godofdream, @go-siris/core |
I like the idea, but isn't a plugin (or hook) much lower level? BasicAuth mechanics sounds more like something that would be a Middleware, or would there be no distinction between those anymore? |
Yes of corse it's more low level. But you can then register plugins and make a config for each plugin, but we can also support the simple middelwares. With a plugin you can create something like micro services and other plugins. What ever you need:
Von meinem iPhone gesendet
… Am 23.07.2017 um 17:30 schrieb Allendar ***@***.***>:
I like the idea, but isn't a plugin (or hook) much lower level? BasicAuth mechanics sounds more like something that would be a Middleware, or would there be no distinction between those anymore?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
What I notice most is that in many projects I don't use all the features of the framework at all. For some projects I don't need front-end, views or sockets at all. For others I only use sockets. Maybe kind of like the way the old |
Maybe i can create in the next week a prototype for it. That shows how i would do it. |
As I like the Idea from @theodesp to make SIRIS more compatible for plugins. Split it to more small pieces.
So now my Idea is to make the Plugins with a fix Interface API, Register functions and priority for the call of that functions.
Example:
For an better RL example we can look to https://github.com/go-siris/siris/pull/45/files#diff-a397a070e184e3d63fa3d834b18b8b93R195
Something like this would be nice and good for us to Register those events/functions.
Then we can include this Plugins like
The Plugin is register it self for the correct hook where it needed.
Additional you can register own hooks, like you need a basicauth for a party-route.
What did you think about this?
The text was updated successfully, but these errors were encountered: