(params martini.Params)
| 494 | } |
| 495 | |
| 496 | func (s *apiServer) ResyncSentinels(params martini.Params) (int, string) { |
| 497 | if err := s.verifyXAuth(params); err != nil { |
| 498 | return rpc.ApiResponseError(err) |
| 499 | } |
| 500 | if err := s.topom.ResyncSentinels(); err != nil { |
| 501 | return rpc.ApiResponseError(err) |
| 502 | } else { |
| 503 | return rpc.ApiResponseJson("OK") |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | func (s *apiServer) InfoServer(params martini.Params) (int, string) { |
| 508 | addr, err := s.parseAddr(params) |
no test coverage detected