RoadSign/pkg/sideload/metrics.go
LittleSheep 7b544f370d
All checks were successful
release-nightly / build-docker (push) Successful in 1m52s
More detailed metrics
2024-01-31 13:17:52 +08:00

15 lines
264 B
Go

package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
)
func getTraffic(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics)
}
func getTraces(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics.Traces)
}