Documentation
¶
Index ¶
- func Contains[T comparable](arr []T, searched T) bool
- func FromJson[S ~string, R any](serializable S, destination *R) error
- func GetRequiredEnv(key string) string
- func Retry(ctx context.Context, config *RetryConfig, err error)
- func ToJson[T any](value T) (string, error)
- type RetryConfig
- type RetryStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](arr []T, searched T) bool
func GetRequiredEnv ¶
Types ¶
type RetryConfig ¶ added in v0.0.5
type RetryConfig struct {
// contains filtered or unexported fields
}
func CreateDefaultRetryConfig ¶ added in v0.0.5
func CreateDefaultRetryConfig(signalChan chan<- struct{}) *RetryConfig
func CreateRetryConfig ¶ added in v0.0.5
func CreateRetryConfig(interval time.Duration, strategy RetryStrategy, maxAttempts uint, signalChan chan<- struct{}) *RetryConfig
func (*RetryConfig) CanRetry ¶ added in v0.0.5
func (conf *RetryConfig) CanRetry() bool
type RetryStrategy ¶ added in v0.0.5
type RetryStrategy string
const ( RetryStrategyFixed RetryStrategy = "fixed" RetryStrategyIncremental RetryStrategy = "incr" )
Click to show internal directories.
Click to hide internal directories.