Documentation ¶
Index ¶
Constants ¶
View Source
const Context = "POSTGRES/FAILSAFE"
Context to use for when failsafe acquisition goes wrong
View Source
const TableFailsafeTransactionHashLogIndex = "failsafe_transaction_hash_log_index"
TableFailsafeTransactionHashLogIndex to be used as the final check before a side effectful action where duplication could possibly happen at the infra level
Variables ¶
This section is empty.
Functions ¶
func CommitTransactionHashIndex ¶
CommitTransactionHashIndex using the transactionHash given, the logIndex, and the worker ID, forming a composite primary key that guarantees uniqueness. Will Fatal if the insertion fails, with a reason. Useful for identifying duplication-related issues.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.