(params martini.Params, entry string)
| 222 | } |
| 223 | |
| 224 | func (s *apiServer) parseInteger(params martini.Params, entry string) (int, error) { |
| 225 | text := params[entry] |
| 226 | if text == "" { |
| 227 | return 0, fmt.Errorf("missing %s", entry) |
| 228 | } |
| 229 | v, err := strconv.Atoi(text) |
| 230 | if err != nil { |
| 231 | return 0, fmt.Errorf("invalid %s", entry) |
| 232 | } |
| 233 | return v, nil |
| 234 | } |
| 235 | |
| 236 | func (s *apiServer) CreateProxy(params martini.Params) (int, string) { |
| 237 | if err := s.verifyXAuth(params); err != nil { |
no test coverage detected