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

Method EnableReplicaGroupsAll

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

Source from the content-addressed store, hash-verified

445}
446
447func (s *apiServer) EnableReplicaGroupsAll(params martini.Params) (int, string) {
448 if err := s.verifyXAuth(params); err != nil {
449 return rpc.ApiResponseError(err)
450 }
451 n, err := s.parseInteger(params, "value")
452 if err != nil {
453 return rpc.ApiResponseError(err)
454 }
455 if err := s.topom.EnableReplicaGroupsAll(n != 0); err != nil {
456 return rpc.ApiResponseError(err)
457 } else {
458 return rpc.ApiResponseJson("OK")
459 }
460}
461
462func (s *apiServer) AddSentinel(params martini.Params) (int, string) {
463 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