Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndTransaction ¶
func EndTransaction(txn0, txn1 Transaction, succeeded *bool)
EndTransaction ends a transaction. If the transaction succeeded then it is committed, otherwise it is rolledback.
Types ¶
type Transaction ¶
type Transaction interface { // Commit the transaction Commit() error // Rollback the transaction. Rollback() error }
A Transaction is something that can be committed or rolledback.
Click to show internal directories.
Click to hide internal directories.