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

Method Exists

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

Source from the content-addressed store, hash-verified

46}
47
48func (handler *NamespaceHandler) Exists(c *gin.Context) {
49 namespace := c.Param("namespace")
50 ok, err := handler.s.ExistsNamespace(c, namespace)
51 if err != nil {
52 helper.ResponseError(c, err)
53 return
54 }
55 if !ok {
56 helper.ResponseError(c, consts.ErrNotFound)
57 return
58 }
59 helper.ResponseOK(c, nil)
60}
61
62func (handler *NamespaceHandler) Create(c *gin.Context) {
63 var request struct {

Callers 1

TestNamespaceBasicsFunction · 0.95

Calls 3

ResponseErrorFunction · 0.92
ResponseOKFunction · 0.92
ExistsNamespaceMethod · 0.65

Tested by 1

TestNamespaceBasicsFunction · 0.76