-
Notifications
You must be signed in to change notification settings - Fork 16
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
[autoendpoint] Flatten module structure a bit #157
Comments
👍 this is closer to syncstorage-rs's layout, with the major difference being it puts most of these bits under a At the risk of bike-shedding: syncstorage-rs calls the I guess technically the |
Bike-shedding (when productive) is part of this issue's purpose! I'm a little hesitant about using |
The same can hold with functions. Where things could get "fuzzy" is around things that are outside of those simple flows. For instance, how would data storage factor in? Should it be an explicit component that could be "swapped" later or be implicit in the
|
This is a real small issue, but I'm making an issue here to track it. Additionally, if we use the autoendpoint crate as a template in the future, we want it to be well architected.
The
server
module is a little too big. It should only handle setting up the Actix server. The extractors, routes, business logic, etc should be contained in "peer" modules.This change should be done once there are no "major" PRs open for autoendpoint (perhaps after #154).
Current layout:
Proposed layout:
The text was updated successfully, but these errors were encountered: