Documentation
¶
Overview ¶
Package chi provides Chi router integration for Modulex.
Instead of forcing every Modulex consumer to depend on Chi, the core modulex.Registry no longer exposes a Router method. Applications that use Chi register the router as a typed service and modules that need it resolve the service by its key.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RouterKey = modulex.NewKey[gochi.Router]("chi.Router")
RouterKey is the typed service key used to register and resolve a Chi router.
Functions ¶
func RegisterRouter ¶
RegisterRouter registers a Chi router in the registry so modules can resolve it without importing modulex/chi in the composition root.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.