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

Method RemoveProxy

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

Source from the content-addressed store, hash-verified

279}
280
281func (s *apiServer) RemoveProxy(params martini.Params) (int, string) {
282 if err := s.verifyXAuth(params); err != nil {
283 return rpc.ApiResponseError(err)
284 }
285 token, err := s.parseToken(params)
286 if err != nil {
287 return rpc.ApiResponseError(err)
288 }
289 force, err := s.parseInteger(params, "force")
290 if err != nil {
291 return rpc.ApiResponseError(err)
292 }
293 if err := s.topom.RemoveProxy(token, force != 0); err != nil {
294 return rpc.ApiResponseError(err)
295 } else {
296 return rpc.ApiResponseJson("OK")
297 }
298}
299
300func (s *apiServer) CreateGroup(params martini.Params) (int, string) {
301 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 3

verifyXAuthMethod · 0.95
parseTokenMethod · 0.95
parseIntegerMethod · 0.95

Tested by

no test coverage detected