Priorities returns an updated filter set that will only return jobs with the given priorities.
(priorities ...int16)
| 390 | // Priorities returns an updated filter set that will only return jobs with the |
| 391 | // given priorities. |
| 392 | func (p *JobListParams) Priorities(priorities ...int16) *JobListParams { |
| 393 | paramsCopy := p.copy() |
| 394 | paramsCopy.priorities = make([]int16, len(priorities)) |
| 395 | copy(paramsCopy.priorities, priorities) |
| 396 | return paramsCopy |
| 397 | } |
| 398 | |
| 399 | // Queues returns an updated filter set that will only return jobs from the |
| 400 | // given queues. |