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

Method RewatchSentinels

pkg/proxy/proxy_api.go:228–236  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

226}
227
228func (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
238type ApiClient struct {
239 addr string

Callers

nothing calls this directly

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected