(params martini.Params)
| 214 | } |
| 215 | |
| 216 | func (s *apiServer) parseToken(params martini.Params) (string, error) { |
| 217 | token := params["token"] |
| 218 | if token == "" { |
| 219 | return "", errors.New("missing token") |
| 220 | } |
| 221 | return token, nil |
| 222 | } |
| 223 | |
| 224 | func (s *apiServer) parseInteger(params martini.Params, entry string) (int, error) { |
| 225 | text := params[entry] |
no outgoing calls
no test coverage detected