MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / List

Method List

server/api/namespace.go:39–46  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

37}
38
39func (handler *NamespaceHandler) List(c *gin.Context) {
40 namespaces, err := handler.s.ListNamespace(c)
41 if err != nil {
42 helper.ResponseError(c, err)
43 return
44 }
45 helper.ResponseOK(c, gin.H{"namespaces": namespaces})
46}
47
48func (handler *NamespaceHandler) Exists(c *gin.Context) {
49 namespace := c.Param("namespace")

Callers 1

TestNamespaceBasicsFunction · 0.95

Calls 3

ResponseErrorFunction · 0.92
ResponseOKFunction · 0.92
ListNamespaceMethod · 0.65

Tested by 1

TestNamespaceBasicsFunction · 0.76