mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-28 22:08:34 +00:00
* Renamed aggregator -> apiServer. * Format errors with container names. * Renamed collector -> apiServer. * Rephrased help messages. * Moved api -> agent. * Continue renameing api -> agent in Makefile and Dockerfiles.
18 lines
355 B
Go
18 lines
355 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
"github.com/up9inc/mizu/shared"
|
|
"mizuserver/pkg/up9"
|
|
)
|
|
|
|
var TapStatus shared.TapStatus
|
|
|
|
func GetTappingStatus(c *fiber.Ctx) error {
|
|
return c.Status(fiber.StatusOK).JSON(TapStatus)
|
|
}
|
|
|
|
func AnalyzeInformation(c *fiber.Ctx) error {
|
|
return c.Status(fiber.StatusOK).JSON(up9.GetAnalyzeInfo())
|
|
}
|