Discover Packages
gitea.com/jake/rainbows
internal
router
package
Version:
v0.0.0-...-051bd16
Opens a new window with list of versions in this module.
Published: Apr 28, 2021
License: GPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Rainbows Router
The concept of the router in Rainbows is to allow multiple paths with the same arguments/path. In the event that one contains the wrong arguments, the next one is simply popped from the stack and ran.
Expand ▾
Collapse ▴
Documentation
¶
Route is used to define the result of a HTTP route.
ok means it was able to parse the route properly and error is route/parser errors.
Router defines the router binary tree.
Execute tries to run a route using the tree.
LoadRoute loads the route into the tree.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.