package
0.0.0-20240526021525-1ff80e000591
Repository: https://github.com/impr0ver/metrics-service.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
ChiRouter initializing and setting up the router.
DataBasePing endpoint handler "/ping", checks for a connection to the database.
No description provided by the author
No description provided by the author
No description provided by the author
MetricsHandlerGet endpoint handler "/value/{mtype}/{mname}".
MetricsHandlerGetAll endpoint handler "/", get all metrics in browser.
MetricsHandlerGetJSON endpoint handler "/value/".
MetricsHandlerPost endpoint handler "/update/{mtype}/{mname}/{mvalue}" metric update.
MetricsHandlerPostBatch endpoint handler "/updates/", metrics update.
MetricsHandlerPostJSON endpoint handler "/update/", metric update.
No description provided by the author
verifyDataMiddleware check hash from request.