mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-21 05:53:29 +00:00
23 lines
692 B
Go
23 lines
692 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/up9inc/mizu/agent/pkg/controllers"
|
|
)
|
|
|
|
func StatusRoutes(ginApp *gin.Engine) {
|
|
routeGroup := ginApp.Group("/status")
|
|
|
|
routeGroup.GET("/health", controllers.HealthCheck)
|
|
|
|
routeGroup.POST("/tappedPods", controllers.PostTappedPods)
|
|
routeGroup.POST("/tapperStatus", controllers.PostTapperStatus)
|
|
routeGroup.GET("/connectedTappersCount", controllers.GetConnectedTappersCount)
|
|
routeGroup.GET("/tap", controllers.GetTappingStatus)
|
|
|
|
routeGroup.GET("/general", controllers.GetGeneralStats)
|
|
routeGroup.GET("/trafficStats", controllers.GetTrafficStats)
|
|
|
|
routeGroup.GET("/resolving", controllers.GetCurrentResolvingInformation)
|
|
}
|