(sentinel models.Sentinel, params martini.Params)
| 216 | } |
| 217 | |
| 218 | func (s *apiServer) SetSentinels(sentinel models.Sentinel, params martini.Params) (int, string) { |
| 219 | if err := s.verifyXAuth(params); err != nil { |
| 220 | return rpc.ApiResponseError(err) |
| 221 | } |
| 222 | if err := s.proxy.SetSentinels(sentinel.Servers); err != nil { |
| 223 | return rpc.ApiResponseError(err) |
| 224 | } |
| 225 | return rpc.ApiResponseJson("OK") |
| 226 | } |
| 227 | |
| 228 | func (s *apiServer) RewatchSentinels(params martini.Params) (int, string) { |
| 229 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected