routes

package
v0.48.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 2 Imported by: 0

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

func OwnsReservedNamespace(v any) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL