(params martini.Params)
| 161 | } |
| 162 | |
| 163 | func (s *apiServer) ResetStats(params martini.Params) (int, string) { |
| 164 | if err := s.verifyXAuth(params); err != nil { |
| 165 | return rpc.ApiResponseError(err) |
| 166 | } else { |
| 167 | ResetStats() |
| 168 | return rpc.ApiResponseJson("OK") |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func (s *apiServer) ForceGC(params martini.Params) (int, string) { |
| 173 | if err := s.verifyXAuth(params); err != nil { |
no test coverage detected