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

Method SyncCreateAction

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

Source from the content-addressed store, hash-verified

554}
555
556func (s *apiServer) SyncCreateAction(params martini.Params) (int, string) {
557 if err := s.verifyXAuth(params); err != nil {
558 return rpc.ApiResponseError(err)
559 }
560 addr, err := s.parseAddr(params)
561 if err != nil {
562 return rpc.ApiResponseError(err)
563 }
564 if err := s.topom.SyncCreateAction(addr); err != nil {
565 return rpc.ApiResponseError(err)
566 } else {
567 return rpc.ApiResponseJson("OK")
568 }
569}
570
571func (s *apiServer) SyncRemoveAction(params martini.Params) (int, string) {
572 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
parseAddrMethod · 0.95

Tested by

no test coverage detected