RoadSign/pkg/sideload/metrics.go

15 lines
264 B
Go
Raw Normal View History

2024-01-25 06:46:43 +00:00
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
)
2024-01-31 05:17:52 +00:00
func getTraffic(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics)
}
2024-01-25 06:46:43 +00:00
func getTraces(c *fiber.Ctx) error {
2024-01-31 05:17:52 +00:00
return c.JSON(navi.R.Metrics.Traces)
}