(params martini.Params)
| 195 | } |
| 196 | |
| 197 | func (s *apiServer) Reload(params martini.Params) (int, string) { |
| 198 | if err := s.verifyXAuth(params); err != nil { |
| 199 | return rpc.ApiResponseError(err) |
| 200 | } |
| 201 | if err := s.topom.Reload(); err != nil { |
| 202 | return rpc.ApiResponseError(err) |
| 203 | } else { |
| 204 | return rpc.ApiResponseJson("OK") |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func (s *apiServer) parseAddr(params martini.Params) (string, error) { |
| 209 | addr := params["addr"] |
nothing calls this directly
no test coverage detected