Versions in this module Expand all Collapse all v1 v1.3.3 Dec 14, 2025 v1.3.2 Sep 9, 2025 Changes in this version + var ErrTerminal = errors.New("job is in a terminal state") + func TestFlagReg32Concurrent(t *testing.T) + func TestFlagReg32SetAndClear(t *testing.T) + func TestJobStateTransitions(t *testing.T) + type FlagReg32 struct + func (r *FlagReg32[T]) All(mask T) bool + func (r *FlagReg32[T]) Any(mask T) bool + func (r *FlagReg32[T]) Clear(mask T) + func (r *FlagReg32[T]) Load() T + func (r *FlagReg32[T]) Set(mask T) + func (r *FlagReg32[T]) SetIf(clearMask, setMask T) bool + func (r *FlagReg32[T]) Store(val T) + type FlagReg32A struct + func (r *FlagReg32A[T]) Clear(mask T) + func (r *FlagReg32A[T]) Load() T + func (r *FlagReg32A[T]) Set(mask T) + func (r *FlagReg32A[T]) SetIf(mask, mustHave T) bool + type JobFlag uint32 + const JobCancelRequestedA + const JobCompletedA + const JobFailedA + const JobPendingA + const JobRetryingA + const JobRunningA + const JobTimedOutA + func (j JobFlag) Has(flag JobFlag) bool + type JobFlagC uint32 + const JobCompletedC + const JobFailedC + const JobNone + const JobRetryingC + const JobRunningC + const JobTimedOutC + func (f JobFlagC) Has(mask JobFlagC) bool + func (f JobFlagC) String() string + type JobState struct + func (s *JobState) Complete() error + func (s *JobState) Fail() error + func (s *JobState) IsTerminal() bool + func (s *JobState) Load() JobFlag + func (s *JobState) RequestCancel() + func (s *JobState) Retry() error + func (s *JobState) Start() error + func (s *JobState) Timeout() error + type JobStateS struct + func (s *JobStateS) Complete() + func (s *JobStateS) Fail() + func (s *JobStateS) Load() JobFlagC + func (s *JobStateS) Retry() + func (s *JobStateS) Start() + func (s *JobStateS) Timeout() + type SecFlag uint32 + const SecAuth + const SecNone + const SecSanitize + const SecSanitizeBody + func FromLegacyMap(m map[string]bool) SecFlag + func (f SecFlag) Any(mask SecFlag) bool + func (f SecFlag) Has(mask SecFlag) bool + func (f SecFlag) String() string + func (f SecFlag) With(mask SecFlag) SecFlag + func (f SecFlag) Without(mask SecFlag) SecFlag