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

Method Shutdown

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

Source from the content-addressed store, hash-verified

195}
196
197func (s *apiServer) Shutdown(params martini.Params) (int, string) {
198 if err := s.verifyXAuth(params); err != nil {
199 return rpc.ApiResponseError(err)
200 }
201 if err := s.proxy.Close(); err != nil {
202 return rpc.ApiResponseError(err)
203 } else {
204 return rpc.ApiResponseJson("OK")
205 }
206}
207
208func (s *apiServer) FillSlots(slots []*models.Slot, params martini.Params) (int, string) {
209 if err := s.verifyXAuth(params); err != nil {

Callers 1

TestStartAndShutdownFunction · 0.45

Calls 2

verifyXAuthMethod · 0.95
CloseMethod · 0.65

Tested by 1

TestStartAndShutdownFunction · 0.36