middleware

package
v0.0.0-...-effb7f7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errors

func Errors() dispatch.Middleware[*routes.Handler]

func Logger

func Logger() dispatch.Middleware[*routes.Handler]

Types

type CounterMW

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

func Counter

func Counter() *CounterMW

func (*CounterMW) Enter

func (*CounterMW) Exit

func (mw *CounterMW) Exit(w http.ResponseWriter, r *routes.Handler)

type ErrorMW

type ErrorMW struct{}

func (*ErrorMW) Enter

func (*ErrorMW) Exit

func (mw *ErrorMW) Exit(w http.ResponseWriter, r *routes.Handler)

type LoggerMW

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

func (*LoggerMW) Enter

func (*LoggerMW) Exit

func (mw *LoggerMW) Exit(w http.ResponseWriter, r *routes.Handler)

Jump to

Keyboard shortcuts

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