Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create[TM any, SD any](data *SD, hf func(context.Context, *TM, *SD) error, opts *Opts[TM]) gue.WorkFunc
CreateHandler helper func to wrapp gue worker main func
func DefaultBackoff ¶
func DefaultBackoff() gue.Backoff
func DefaultBackoffOrTest ¶
func DefaultBackoffOrTest(test bool) gue.Backoff
Types ¶
type Opts ¶
type Opts[TM any] struct { // contains filtered or unexported fields }
func DefaultOpts ¶
func (*Opts[TM]) WithBackoff ¶
func (*Opts[TM]) WithFailure ¶
Click to show internal directories.
Click to hide internal directories.