mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-05 20:38:50 +00:00
* Remove non-critical TLS detected log that causes `slice bounds out of range` error * Remove all non-functional `OutboundLink` code that was providing `/status/recentTLSLinks` endpoint * Fix more unused code
26 lines
785 B
Go
26 lines
785 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("/auth", controllers.GetAuthStatus)
|
|
|
|
routeGroup.GET("/analyze", controllers.AnalyzeInformation)
|
|
|
|
routeGroup.GET("/general", controllers.GetGeneralStats) // get general stats about entries in DB
|
|
|
|
routeGroup.GET("/resolving", controllers.GetCurrentResolvingInformation)
|
|
}
|