# Packages
No description provided by the author
No description provided by the author
No description provided by the author
Package sync is an analogue to the stdlib sync package.
Package ttime implements a testable alternative to the Go "time" package.
# Functions
AddJitter adds an amount of jitter between 0 and the given jitter to the given duration.
CompleteJsonUnmarshal determines if a given struct has members corresponding to every key of a json object (passed as the json string).
No description provided by the author
ExtractVersion extracts a matching version from the version number string.
JsonKeys takes an arbitrary byte array representing a json stringified object and returns all the keys of that object.
NewAttributeError creates a new AttributeError object.
No description provided by the author
NewMultiError creates a new MultErr object.
NewRetriable creates a new DefaultRetriable object.
NewRetriableError creates a new DefaultRetriableError object.
No description provided by the author
NewSimpleBackoff creates a Backoff which ranges from min to max increasing by multiple each time.
No description provided by the author
No description provided by the author
RetryNWithBackoff takes a Backoff, a maximum number of tries 'n', and a function that returns an error.
RetryNWithBackoffCtx takes a context, a Backoff, a maximum number of tries 'n', and a function that returns an error.
RetryWithBackoff takes a Backoff and a function to call that returns an error If the error is nil then the function will no longer be called If the error is Retriable then that will be used to determine if it should be retried.
RetryWithBackoffCtx takes a context, a Backoff, and a function to call that returns an error If the context is done, nil will be returned If the error is nil then the function will no longer be called If the error is Retriable then that will be used to determine if it should be retried.
SignHTTPRequest signs an http.Request struct with authv4 using the given region, service, and credentials.
SlicesDeepEqual checks if slice1 and slice2 are equal, disregarding order.
No description provided by the author
No description provided by the author
Uint16SliceToStringSlice converts a slice of type uint16 to a slice of type *string.
No description provided by the author
# Structs
AttributeError defines an error type to indicate an error with an ECS attribute.
Implements semaphore.
DefaultRetriable implements the Retriable interface with a boolean to indicate if retry should occur.
DefaultRetriableError is used to wrap a retriable error.
MultiErr wraps multiple errors.
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
Retriable defines an interface for retriable methods.
RetriableError defines an interface for a retriable error.
No description provided by the author
# Type aliases
No description provided by the author