JobListCursorFromJob creates a JobListCursor from a JobRow.
(job *rivertype.JobRow)
| 26 | |
| 27 | // JobListCursorFromJob creates a JobListCursor from a JobRow. |
| 28 | func JobListCursorFromJob(job *rivertype.JobRow) *JobListCursor { |
| 29 | // Other fields are initialized when the cursor is used in After below. |
| 30 | return &JobListCursor{job: job} |
| 31 | } |
| 32 | |
| 33 | func jobListCursorFromJobAndParams(job *rivertype.JobRow, listParams *JobListParams) *JobListCursor { |
| 34 | // A pointer so that we can detect a condition where we accidentally left |
no outgoing calls
searching dependent graphs…