Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateBytesUUID() []byte
- func GenerateUUID() string
- func GenerateUUIDOnlyLetters() string
- func NewProbabilisticRetryRunner(maxTimes int, interval int64, expBackoff bool) *retryRunner
- func NewRetryRunner(maxTimes int, delay time.Duration, expBackoff bool) *retryRunner
- func NewTypedRetryRunner[V any](maxTimes int, delay time.Duration, expBackoff bool) *typedRetryRunner[V]
- type RetryRunner
Constants ¶
View Source
const Infinitely = -1
Variables ¶
View Source
var ErrMaxRetriesExceeded = errors.New("maximum number of retries exceeded")
Functions ¶
func GenerateBytesUUID ¶
func GenerateBytesUUID() []byte
GenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes
func GenerateUUIDOnlyLetters ¶
func GenerateUUIDOnlyLetters() string
GenerateUUIDOnlyLetters returns a UUID without digits
func NewProbabilisticRetryRunner ¶
NewProbabilisticRetryRunner returns a new runner that sets delay to time.Duration(rand.Int63n(f.interval)+1) * time.Millisecond
func NewRetryRunner ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.