package
0.0.0-20230307183559-2da11fd39fb3
Repository: https://github.com/ngamux/middleware.git
Documentation: pkg.go.dev
# README
Ping
Middleware to add new URL path and send "pong" as response.
Usefull for checking the health of server.
Usage
Import
import "github.com/ngamux/middleware/authjwt"
Instance With Default Config
authjwtMiddleware := authjwt.New()
Instance With Custom Config
authjwtMiddleware := authjwt.New(authjwt.Config{
SigningKey: []byte("123123123"),
Header: "X-API-Key",
})
Mount to Ngamux
mux := ngamux.New()
mux.Use(authjwtMiddleware)
# Functions
No description provided by the author
# Variables
No description provided by the author