(params martini.Params)
| 226 | } |
| 227 | |
| 228 | func (s *apiServer) RewatchSentinels(params martini.Params) (int, string) { |
| 229 | if err := s.verifyXAuth(params); err != nil { |
| 230 | return rpc.ApiResponseError(err) |
| 231 | } |
| 232 | if err := s.proxy.RewatchSentinels(); err != nil { |
| 233 | return rpc.ApiResponseError(err) |
| 234 | } |
| 235 | return rpc.ApiResponseJson("OK") |
| 236 | } |
| 237 | |
| 238 | type ApiClient struct { |
| 239 | addr string |
nothing calls this directly
no test coverage detected