Discover Packages
github.com/arl/statsviz
_example
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: May 8, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
Examples
Using http.DefaultServeMux:
Using your own http.ServeMux:
Use statsviz options API to serve Statsviz web UI on /foo/bar (instead of default
/debug/statsviz) and send metrics with a frequency of 250ms (rather than 1s ):
Serve the the web UI via https and Websocket via wss:
Wrap statviz handlers behind a middleware (HTTP Basic Authentication for example):
Using various Go libraries
With gorilla/mux router:
Using valyala/fasthttp and soheilhy/cmux :
Using labstack/echo router:
With gin-gonic/gin web framework:
With go-chi/chi router:
With gofiber/fiber web framework:
Expand ▾
Collapse ▴
Documentation
¶
Work loops forever, generating a bunch of allocations of various sizes in
order to force the garbage collector to work.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.