routing

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0, Apache-2.0 Imports: 35 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(cfg config.Config) *mux.Router

NewRouter creates the main router that will be used by the api (contains both v2 and v3 routes)

func PrintRoutes

func PrintRoutes(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error

PrintRoutes Attempts to print all register routes when called using mux.Router.Walk(PrintRoutes)

Types

type RouteV2

type RouteV2 struct {
	Name             string
	Pattern          string
	SubrouterHandler func(*mux.Router, *respond.ConfHandler)
}

RouteV2 represents the new style of routes that are handled by each package respectively

type RouteV3

type RouteV3 RouteV2

Same Route model as V2

type RouteV4 added in v1.14.3

type RouteV4 RouteV2

Jump to

Keyboard shortcuts

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