chi

package
v0.0.0-...-b87209e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package chi provides a Chi implementation of the router interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	*chi.Mux
}

Router router implements the router interface.

func NewRouter

func NewRouter() *Router

NewRouter creates a new Chi router.

func (*Router) Middlewares

func (r *Router) Middlewares() []func(http.Handler) http.Handler

Middlewares returns the list of currently registered middlewares.

func (*Router) Routes

func (r *Router) Routes() []router.Route

Routes returns a tree of registered routes.

Jump to

Keyboard shortcuts

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