Documentation
¶
Overview ¶
Package routes identifies modules that own framework-managed HTTP routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OwnsReservedNamespace ¶
OwnsReservedNamespace reports whether v carries the private framework route marker and its direct dynamic type belongs to this module. Requiring both prevents an external type from inheriting the marker by embedding a marked first-party module and replacing its Routes method.
Types ¶
type ReservedNamespace ¶
type ReservedNamespace struct{}
ReservedNamespace marks a first-party module as an owner of routes under the framework's reserved HTTP namespace.
The package lives under internal so application and third-party module code cannot import or embed this marker.
Click to show internal directories.
Click to hide internal directories.