(params martini.Params)
| 445 | } |
| 446 | |
| 447 | func (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 | |
| 462 | func (s *apiServer) AddSentinel(params martini.Params) (int, string) { |
| 463 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected