-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: router refactor and cmap fallback
Allows specifying a commandmap on a router as well as a map and default route. Lookup order is: - Check map, if entry is map, check that - If none matched, check fallback command map - If nothing matched, return default route handler if exists Also removes the router struct from the funcgen object, saving 32 bytes and letting me extend the size of the router struct without bloating every allocated fgen. This will later allow inlining the lookup map into the router struct for a lookup speedup. Finally, this adds support for "cmap only routers", which is mostly useful when working with abstractions like routelib.
- Loading branch information
Showing
4 changed files
with
199 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.