-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hierarchical routing for SDK Apps #770
Comments
Interesting. Do you have specific examples in mind where an SDK user would want to overwrite particular module handlers like this? |
Yeah cool thanks @mossid for clearing this one up, the design was confusing as to where one might use |
Awaiting discussion at SDK design meeting. |
Tabled by SDK design meeting to post-launch. |
This is to facillitate ease of implementing #1406. (Tags for messages could then be added dynamically) Ultimately once we make the router support hiearchical routing, (#770) we can then remove the name field and just the parse info for tags from that. Until then, we can parse the tag name as `fmt.Sprintf("%s %s", msg.Type(), msg.Name())`
This is to facillitate ease of implementing #1406. (Tags for messages could then be added dynamically) Ultimately once we make the router support hiearchical routing, (#770) we can then remove the name field and just the parse info for tags from that. Until then, we can parse the tag name as `fmt.Sprintf("%s %s", msg.Type(), msg.Name())`
Going to close this issue. Please reopen with more information if applicable. |
Currently, Router in Baseapp is implemented as a simple list of routes, so the msgs are routed to the handlers those are assigned to exactly the same path with the msg's type.
Originally, Router was designed to be hierarchical, so something like this could be done:
The text was updated successfully, but these errors were encountered: