middleware

package
v0.0.0-...-d5aecf8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMiddleware

func LogMiddleware(next http.Handler) http.Handler

func TimeMiddleware

func TimeMiddleware(next http.Handler) http.Handler

Types

type Middleware

type Middleware func(http.Handler) http.Handler

type Router

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

func NewRouter

func NewRouter() *Router

func (*Router) Merge

func (r *Router) Merge(h http.Handler) http.Handler

func (*Router) Use

func (r *Router) Use(m Middleware)

Jump to

Keyboard shortcuts

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