failsafe

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

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

func CommitTransactionHashIndex(transactionHash ethereum.Hash, logIndex misc.BigInt) (success bool)

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.

Jump to

Keyboard shortcuts

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