Documentation ¶
Index ¶
- Constants
- Variables
- func ClientSetting(client *http.Client)
- func EchoMetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func EchoSetting(e *echo.Echo) *echo.Echo
- func FastListenAndServe(addr string, handler fasthttp.RequestHandler) error
- func FastListenAndServeTLS(addr, certFile, keyFile string, handler fasthttp.RequestHandler) error
- func FastListenAndServeTLSEmbed(addr string, certData, keyData []byte, handler fasthttp.RequestHandler) error
- func FastMetricsMiddleware(next fasthttp.RequestHandler) fasthttp.RequestHandler
- func FastServerListenAndServe(server *fasthttp.Server, addr string) error
- func FastServerListenAndServeTLS(server *fasthttp.Server, addr string, certFile, keyFile string) error
- func FastServerListenAndServeTLSEmbed(server *fasthttp.Server, addr string, certData, keyData []byte) error
- func FiberMetricsMiddleware(next fiber.Handler) fiber.Handler
- func FiberNew(conf ...fiber.Config) *fiber.App
- func GinMetricsMiddleware(c *gin.Context)
- func GinNew(engine *gin.Engine) *gin.Engine
- func GinRun(engine *gin.Engine, addrs ...string) error
- func GinRunTLS(engine *gin.Engine, addr, certFile, keyFile string) error
- func ListenAndServe(addr string, handler http.Handler) error
- func ListenAndServeTLS(addr, certFile, keyFile string, handler http.Handler) error
- func ServerListenAndServe(server *http.Server) error
- func ServerListenAndServeTLS(server *http.Server, certFile, keyFile string) error
- func ServerMuxHandle(mux *http.ServeMux, pattern string, handler http.Handler)
- func ServerMuxHandleFunc(mux *http.ServeMux, pattern string, ...)
- func SetPath(req *http.Request, path string) *http.Request
- func SetUnix(path string)
- func StdMetricsMiddleware(next http.Handler) http.Handler
- type JSONSerializer
Constants ¶
View Source
const ( KB float64 = 1 << (10 * (iota + 1)) MB GB TB )
Variables ¶
View Source
var FilterFunc = func(path string) string { newPath, ok := func() (string, bool) { filterCacheLocker.RLock() defer filterCacheLocker.RUnlock() if v, ok := filterCache[path]; ok { return v, true } return "", false }() if ok { return newPath } for _, re := range filterReList { path = re.re.ReplaceAllString(path, re.to) } return path }
Functions ¶
func ClientSetting ¶
func EchoMetricsMiddleware ¶
func EchoMetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func EchoSetting ¶
func EchoSetting(e *echo.Echo) *echo.Echo
func FastListenAndServe ¶
func FastListenAndServe(addr string, handler fasthttp.RequestHandler) error
func FastListenAndServeTLS ¶
func FastListenAndServeTLS(addr, certFile, keyFile string, handler fasthttp.RequestHandler) error
func FastListenAndServeTLSEmbed ¶
func FastListenAndServeTLSEmbed(addr string, certData, keyData []byte, handler fasthttp.RequestHandler) error
func FastMetricsMiddleware ¶
func FastMetricsMiddleware(next fasthttp.RequestHandler) fasthttp.RequestHandler
func FiberMetricsMiddleware ¶
func FiberMetricsMiddleware(next fiber.Handler) fiber.Handler
func GinMetricsMiddleware ¶
func ListenAndServeTLS ¶
func ServerListenAndServe ¶
func ServerListenAndServeTLS ¶
func ServerMuxHandle ¶
func ServerMuxHandleFunc ¶
Types ¶
type JSONSerializer ¶
type JSONSerializer struct{}
func (JSONSerializer) Deserialize ¶
func (JSONSerializer) Deserialize(c echo.Context, i any) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.