route

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package route provides a Route data structure for Request Routing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostRouteSet

type HostRouteSet struct {
	ExactMatchRoutes     LookupLookup
	PrefixMatchRoutes    PrefixRouteSets
	PrefixMatchRoutesLkp PrefixRouteSetLookup
}

type HostRouteSetLookup

type HostRouteSetLookup map[string]*HostRouteSet

type Lookup

type Lookup map[string]*Route

type LookupLookup

type LookupLookup map[string]Lookup

type PrefixRouteSet

type PrefixRouteSet struct {
	Path           string
	PathLen        int
	RoutesByMethod Lookup
}

type PrefixRouteSetLookup

type PrefixRouteSetLookup map[string]*PrefixRouteSet

type PrefixRouteSets

type PrefixRouteSets []*PrefixRouteSet

type Route

type Route struct {
	ExactMatch bool
	Method     string
	Host       string
	Path       string
	Handler    http.Handler
}

type Routes

type Routes []*Route

Jump to

Keyboard shortcuts

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