(params martini.Params)
| 150 | } |
| 151 | |
| 152 | func (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 | |
| 163 | func (s *apiServer) ResetStats(params martini.Params) (int, string) { |
| 164 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected