MCPcopy Index your code
hub / github.com/CodisLabs/codis / CreateGroup

Method CreateGroup

pkg/topom/topom_api.go:300–313  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

298}
299
300func (s *apiServer) CreateGroup(params martini.Params) (int, string) {
301 if err := s.verifyXAuth(params); err != nil {
302 return rpc.ApiResponseError(err)
303 }
304 gid, err := s.parseInteger(params, "gid")
305 if err != nil {
306 return rpc.ApiResponseError(err)
307 }
308 if err := s.topom.CreateGroup(gid); err != nil {
309 return rpc.ApiResponseError(err)
310 } else {
311 return rpc.ApiResponseJson("OK")
312 }
313}
314
315func (s *apiServer) RemoveGroup(params martini.Params) (int, string) {
316 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
parseIntegerMethod · 0.95

Tested by

no test coverage detected