After returns an updated filter set that will only return jobs after the given cursor.
(cursor *JobListCursor)
| 297 | // After returns an updated filter set that will only return jobs |
| 298 | // after the given cursor. |
| 299 | func (p *JobListParams) After(cursor *JobListCursor) *JobListParams { |
| 300 | paramsCopy := p.copy() |
| 301 | if cursor.job == nil { |
| 302 | paramsCopy.after = cursor |
| 303 | } else { |
| 304 | paramsCopy.after = jobListCursorFromJobAndParams(cursor.job, paramsCopy) |
| 305 | } |
| 306 | return paramsCopy |
| 307 | } |
| 308 | |
| 309 | // First returns an updated filter set that will only return the first |
| 310 | // count jobs. |