util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package util include a serie of utilities for Terracognita

Index

Constants

View Source
const (
	// AWSThrottlingCode it's the code used for AWS services
	// to anounce the API limit
	AWSThrottlingCode = "Throttling"
)

Variables

This section is empty.

Functions

func Retry

func Retry(rfn RetryFn, times int, interval time.Duration) error

Retry calls rfn and checks the errors, if it matches the error and if it does it tries 'times' withing the 'interval'

func RetryDefault

func RetryDefault(rfn RetryFn) error

RetryDefault calls Retry with the default parameters

Types

type RetryFn

type RetryFn func() error

RetryFn it's a type to represent the function wrapped for the Retry or RetryDefault methods

Jump to

Keyboard shortcuts

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