# README
autotx
Golang transaction manager that supports rollback and retry on error
See package docs for documentation
# Functions
Transact executes the operation inside a transaction, committing the transaction on completion.
TransactWithOptions executes the operation inside a transaction, committing the transaction on completion.
TransactWithRetry runs the operation using Transact, performing retries according to RetryOptions.
TransactWithRetryAndOptions runs the operation using Transact, performing retries according to RetryOptions.
# Constants
DefaultBackOffFactor configues the factor the previous backoff interval will be multiplied by to get the next backoff.
DefaultInitialBackoff configures the initial backoff interval.
DefaultMaxBackoff configures the maximum backoff interval.
# Variables
DefaultIsRetryable configures the default function for determining whether the error returned from the operation is retryable.
DefaultMaxRetries configures the default number of max retries attempted by TransactWithRetry.
# Structs
RetryOptions controls how TransactWithRetry behaves.
RollbackErr is the error returned if the transaction operation returned an error, and the rollback automatically attempted also returns an error.
# Type aliases
BackOffFunc is a function called on each retry attempt.