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

Method SetSentinels

pkg/proxy/proxy_api.go:218–226  ·  view source on GitHub ↗
(sentinel models.Sentinel, params martini.Params)

Source from the content-addressed store, hash-verified

216}
217
218func (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
228func (s *apiServer) RewatchSentinels(params martini.Params) (int, string) {
229 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected