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
As with @ddysher's comments at nirvana-practice, I have no problem with the current structure in nirvana-template-project repo, except that the handler directory should be renamed to handlers.
Strictly speaking, handler/middlewares/modifiers should all be moved into pkg/apis/v1 (e.g. you can't say for sure that modifiers won't touch any v1 data structure).
But this makes the code hard to reason about. I'd vote for current structure and keep it as is. The pkg/apis is only used for user-facing structures and routes.
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
We did discuss this before, the proposed (slightly modified) structure is:
Refer to the discussion for details.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
The text was updated successfully, but these errors were encountered: