Help us shape the future of Go! Take the 2026 Go Developer Survey

dbunique

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueKey added in v0.12.0

func UniqueKey(timeGen rivertype.TimeGenerator, uniqueOpts *UniqueOpts, params *rivertype.JobInsertParams) ([]byte, error)

Types

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL