routing

package
v0.0.0-...-c0e837a Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Build() []*RouteGroup
}

This will handle the defining of handler functions and its method and path.

type Manager

type Manager interface {
	Register(groups []*RouteGroup)
}

This manager handles the handlers and its endpoint by grouping and emitting the grouped handlers into a more compact approach.

func NewRoutingManager

func NewRoutingManager(app *hypergon.Hyper) Manager

type Route

type Route struct {
	Method  string
	Path    string
	Handler hypergon.HandlerFunc
}

type RouteGroup

type RouteGroup struct {
	Prefix     string
	Middleware []hypergon.Middleware
	Routes     []Route
	SubGroups  []*RouteGroup
}

Jump to

Keyboard shortcuts

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