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

Method Start

pkg/proxy/proxy_api.go:152–161  ·  view source on GitHub ↗
(params martini.Params)

Source from the content-addressed store, hash-verified

150}
151
152func (s *apiServer) Start(params martini.Params) (int, string) {
153 if err := s.verifyXAuth(params); err != nil {
154 return rpc.ApiResponseError(err)
155 }
156 if err := s.proxy.Start(); err != nil {
157 return rpc.ApiResponseError(err)
158 } else {
159 return rpc.ApiResponseJson("OK")
160 }
161}
162
163func (s *apiServer) ResetStats(params martini.Params) (int, string) {
164 if err := s.verifyXAuth(params); err != nil {

Callers

nothing calls this directly

Calls 1

verifyXAuthMethod · 0.95

Tested by

no test coverage detected