router

package
v0.0.0-...-eb6014d Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupRouter

func GroupRouter(parent chi.Router, pattern string, fn func(r chi.Router)) chi.Router

GroupRouter creates a new chi router group within the parent router.

func MountRouter

func MountRouter(parent chi.Router, pattern string, handler http.Handler)

MountRouter mounts a sub-router onto the parent router.

func New

func New() chi.Router

NewRouter creates a new chi router with specified options.

func UseMiddleware

func UseMiddleware(r chi.Router, m ...func(http.Handler) http.Handler)

UseMiddleware adds middleware to the router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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