You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dylanhitt's suggestion is to have an fuegogin.Adaptor wrapping fuego's Engine and gin's Mux. This would open several possibilities in the future. Current one is purely an API design issue, that would allow to make OpenAPI routes registration more automatic.
My personal opinion (that might change) is that I love to have a "side-car" fuego.Engine and let the user have the control on its own gin.Engine. Both live "side by side". I think that wrapping it in an adaptor might feel "magical". This is the current pattern in the gin and echo compatibility alpha, but this might change.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@dylanhitt's suggestion is to have an
fuegogin.Adaptor
wrapping fuego's Engine and gin's Mux. This would open several possibilities in the future. Current one is purely an API design issue, that would allow to make OpenAPI routes registration more automatic.My personal opinion (that might change) is that I love to have a "side-car"
fuego.Engine
and let the user have the control on its owngin.Engine
. Both live "side by side". I think that wrapping it in an adaptor might feel "magical". This is the current pattern in the gin and echo compatibility alpha, but this might change.This is very very challengeable, @qbit @redecs @Jeremie-Chauvel @rizerkrof @ccoVeille and others, as users, what would you prefer?
1️⃣ Adaptor
2️⃣ side-car
On implem side, it would look like this
ref #344 (comment)
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions