mws

package
v0.0.0-...-7cf9709 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogToConsole

func AccessLogToConsole(r http.Handler) http.Handler

AccessLogToConsole prints sever logs to the terminal

func AuthorizationChain

func AuthorizationChain(next http.Handler) http.Handler

AuthorizationChain with jwt

func AuthorizationSingle

func AuthorizationSingle(next http.HandlerFunc) http.HandlerFunc

AuthorizationSingle with jwt

Types

type Middleware

type Middleware func(http.HandlerFunc) http.HandlerFunc

Middleware type

func ChainMiddleware

func ChainMiddleware(mw ...Middleware) Middleware

ChainMiddleware chains multiply handlers

Jump to

Keyboard shortcuts

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