router

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

func NewMux() *chi.Mux

Types

type DynamicRouter

type DynamicRouter struct {
	// contains filtered or unexported fields
}

Router is a wrapper around chi.Router

func NewRouterWithMux

func NewRouterWithMux(mux *chi.Mux) *DynamicRouter

NewRouter creates a new router

func (*DynamicRouter) ReplaceMux

func (r *DynamicRouter) ReplaceMux(router *chi.Mux)

ReplaceRouter replaces the router

func (*DynamicRouter) ServeHTTP

func (r *DynamicRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP is a wrapper around chi.Router.ServeHTTP

Jump to

Keyboard shortcuts

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