()
| 428 | } |
| 429 | |
| 430 | func (r *RecentResponse) Err() error { |
| 431 | if r.Error != "" || r.ErrorType != "" { |
| 432 | if r.ErrorType != "" { |
| 433 | return fmt.Errorf("%s: %s", r.ErrorType, r.Error) |
| 434 | } |
| 435 | return errors.New(r.Error) |
| 436 | } |
| 437 | return nil |
| 438 | } |
| 439 | |
| 440 | // WithAttrResponse is the JSON response from $searchRoot/camli/search/permanodeattr. |
| 441 | type WithAttrResponse struct { |
no outgoing calls