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

Method RemoveGroup

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

Source from the content-addressed store, hash-verified

313}
314
315func (s *apiServer) RemoveGroup(params martini.Params) (int, string) {
316 if err := s.verifyXAuth(params); err != nil {
317 return rpc.ApiResponseError(err)
318 }
319 gid, err := s.parseInteger(params, "gid")
320 if err != nil {
321 return rpc.ApiResponseError(err)
322 }
323 if err := s.topom.RemoveGroup(gid); err != nil {
324 return rpc.ApiResponseError(err)
325 } else {
326 return rpc.ApiResponseJson("OK")
327 }
328}
329
330func (s *apiServer) ResyncGroup(params martini.Params) (int, string) {
331 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