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

Method SlotCreateAction

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

Source from the content-addressed store, hash-verified

584}
585
586func (s *apiServer) SlotCreateAction(params martini.Params) (int, string) {
587 if err := s.verifyXAuth(params); err != nil {
588 return rpc.ApiResponseError(err)
589 }
590 sid, err := s.parseInteger(params, "sid")
591 if err != nil {
592 return rpc.ApiResponseError(err)
593 }
594 gid, err := s.parseInteger(params, "gid")
595 if err != nil {
596 return rpc.ApiResponseError(err)
597 }
598 if err := s.topom.SlotCreateAction(sid, gid); err != nil {
599 return rpc.ApiResponseError(err)
600 } else {
601 return rpc.ApiResponseJson("OK")
602 }
603}
604
605func (s *apiServer) SlotCreateActionSome(params martini.Params) (int, string) {
606 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
parseIntegerMethod · 0.95

Tested by

no test coverage detected