MCPcopy Index your code
hub / github.com/deepflowio/deepflow / RegisterTo

Method RegisterTo

server/controller/http/router/controller.go:47–55  ·  view source on GitHub ↗
(e *gin.Engine)

Source from the content-addressed store, hash-verified

45}
46
47func (c *Controller) RegisterTo(e *gin.Engine) {
48 adminRoutes := e.Group("/v1/controllers")
49 adminRoutes.Use(AdminPermissionVerificationMiddleware())
50
51 adminRoutes.GET("/:lcuuid/", getController)
52 adminRoutes.GET("/", getControllers)
53 adminRoutes.PATCH("/:lcuuid/", updateController(c.cc, c.cfg))
54 adminRoutes.DELETE("/:lcuuid/", deleteController(c.cc, c.cfg))
55}
56
57func getController(c *gin.Context) {
58 args := make(map[string]string)

Callers

nothing calls this directly

Calls 4

updateControllerFunction · 0.85
deleteControllerFunction · 0.85
UseMethod · 0.80

Tested by

no test coverage detected