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/ping"
Instance With Default Config
pingMiddleware := ping.New()
Instance With Custom Config
pingMiddleware := ping.New(ping.Config{
Path: "/check",
})
Mount to Ngamux
mux := ngamux.New()
mux.Use(pingMiddleware)
# Functions
No description provided by the author