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

Method FillSlots

pkg/proxy/proxy_api.go:208–216  ·  view source on GitHub ↗
(slots []*models.Slot, params martini.Params)

Source from the content-addressed store, hash-verified

206}
207
208func (s *apiServer) FillSlots(slots []*models.Slot, params martini.Params) (int, string) {
209 if err := s.verifyXAuth(params); err != nil {
210 return rpc.ApiResponseError(err)
211 }
212 if err := s.proxy.FillSlots(slots); err != nil {
213 return rpc.ApiResponseError(err)
214 }
215 return rpc.ApiResponseJson("OK")
216}
217
218func (s *apiServer) SetSentinels(sentinel models.Sentinel, params martini.Params) (int, string) {
219 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected