code

package
v0.0.0-...-d099c39 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMiddleware

func ApplyMiddleware(h http.Handler, middleware ...Middleware) http.Handler

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func ClientDemo

func ClientDemo()

func CookieDemo

func CookieDemo()

func MiddlewareDemo

func MiddlewareDemo()

func ServerDemo

func ServerDemo()

func SimpleMiddleware

func SimpleMiddleware(next http.Handler) http.Handler

Types

type Middleware

type Middleware func(http.Handler) http.Handler

type MyHandler

type MyHandler struct{}

func (*MyHandler) ServeHTTP

func (c *MyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SomeHandler

type SomeHandler struct{}

func (*SomeHandler) ServeHTTP

func (sh *SomeHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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