router

package
v0.0.0-...-6b5bc34 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(logger *httplog.Logger, options ...Option) (*chi.Mux, error)

Types

type Option

type Option func(r *chi.Mux)

func WithMiddleware

func WithMiddleware(middleware ...func(http.Handler) http.Handler) Option

func WithRoute

func WithRoute(method, pattern string, handler http.Handler) Option

Jump to

Keyboard shortcuts

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