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

Method ReinitProxy

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

Source from the content-addressed store, hash-verified

264}
265
266func (s *apiServer) ReinitProxy(params martini.Params) (int, string) {
267 if err := s.verifyXAuth(params); err != nil {
268 return rpc.ApiResponseError(err)
269 }
270 token, err := s.parseToken(params)
271 if err != nil {
272 return rpc.ApiResponseError(err)
273 }
274 if err := s.topom.ReinitProxy(token); err != nil {
275 return rpc.ApiResponseError(err)
276 } else {
277 return rpc.ApiResponseJson("OK")
278 }
279}
280
281func (s *apiServer) RemoveProxy(params martini.Params) (int, string) {
282 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 2

verifyXAuthMethod · 0.95
parseTokenMethod · 0.95

Tested by

no test coverage detected