(params martini.Params)
| 170 | } |
| 171 | |
| 172 | func (s *apiServer) ForceGC(params martini.Params) (int, string) { |
| 173 | if err := s.verifyXAuth(params); err != nil { |
| 174 | return rpc.ApiResponseError(err) |
| 175 | } else { |
| 176 | runtime.GC() |
| 177 | return rpc.ApiResponseJson("OK") |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | func (s *apiServer) LogLevel(params martini.Params) (int, string) { |
| 182 | if err := s.verifyXAuth(params); err != nil { |
no test coverage detected