hostrouter

package
v0.0.0-...-0941746 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Routes

type Routes map[string]chi.Router

func New

func New() Routes

func (Routes) Map

func (hr Routes) Map(host string, h chi.Router)

func (Routes) Match

func (hr Routes) Match(rctx *chi.Context, method, path string) bool

func (Routes) Middlewares

func (hr Routes) Middlewares() chi.Middlewares

func (Routes) Routes

func (hr Routes) Routes() []chi.Route

func (Routes) ServeHTTP

func (hr Routes) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (Routes) Unmap

func (hr Routes) Unmap(host string)

Jump to

Keyboard shortcuts

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