Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UniqueBitmaskToStates ¶ added in v0.12.0
func UniqueKey ¶ added in v0.12.0
func UniqueKey(timeGen baseservice.TimeGenerator, uniqueOpts *UniqueOpts, params *riverdriver.JobInsertFastParams) ([]byte, error)
func UniqueStatesToBitmask ¶ added in v0.12.0
Types ¶
type UniqueInserter ¶
type UniqueInserter struct { baseservice.BaseService AdvisoryLockPrefix int32 }
func (*UniqueInserter) JobInsert ¶
func (i *UniqueInserter) JobInsert(ctx context.Context, exec riverdriver.Executor, params *riverdriver.JobInsertFastParams, uniqueOpts *UniqueOpts) (*riverdriver.JobInsertFastResult, error)
type UniqueOpts ¶
type UniqueOpts struct { ByArgs bool ByPeriod time.Duration ByQueue bool ByState []rivertype.JobState ExcludeKind bool }
func (*UniqueOpts) IsEmpty ¶
func (o *UniqueOpts) IsEmpty() bool
func (*UniqueOpts) StateBitmask ¶ added in v0.12.0
func (o *UniqueOpts) StateBitmask() byte
Click to show internal directories.
Click to hide internal directories.