MCPcopy
hub / github.com/CodisLabs/codis / Shutdown

Method Shutdown

pkg/topom/topom_api.go:682–691  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

680}
681
682func (s *apiServer) Shutdown(params martini.Params) (int, string) {
683 if err := s.verifyXAuth(params); err != nil {
684 return rpc.ApiResponseError(err)
685 }
686 if err := s.topom.Close(); err != nil {
687 return rpc.ApiResponseError(err)
688 } else {
689 return rpc.ApiResponseJson("OK")
690 }
691}
692
693func (s *apiServer) SetSlotActionInterval(params martini.Params) (int, string) {
694 if err := s.verifyXAuth(params); err != nil {

Callers 12

TestGroupPromoteFunction · 0.45
RemoveProxyMethod · 0.45
TestCreateProxyFunction · 0.45
TestRemoveProxyFunction · 0.45
TestSlotActionPendingFunction · 0.45
TestSlotActionPreparingFunction · 0.45
TestSlotActionPreparedFunction · 0.45
TestSlotActionMigratingFunction · 0.45
TestSlotActionFinishedFunction · 0.45
TestApiTopomFunction · 0.45
TestApiProxyFunction · 0.45
TestProxyStatsFunction · 0.45

Calls 2

verifyXAuthMethod · 0.95
CloseMethod · 0.65

Tested by 11

TestGroupPromoteFunction · 0.36
TestCreateProxyFunction · 0.36
TestRemoveProxyFunction · 0.36
TestSlotActionPendingFunction · 0.36
TestSlotActionPreparingFunction · 0.36
TestSlotActionPreparedFunction · 0.36
TestSlotActionMigratingFunction · 0.36
TestSlotActionFinishedFunction · 0.36
TestApiTopomFunction · 0.36
TestApiProxyFunction · 0.36
TestProxyStatsFunction · 0.36