package
0.0.0-20241022194553-db3115c90c22
Repository: https://github.com/couchbase/gocbcorex.git
Documentation: pkg.go.dev

# Functions

CreateGetResult creates a false TransactionGetResult which can be used with Replace/Remove operations where the original TransactionGetResult is no longer available.
InitTransactions will initialize the transactions library and return a TransactionsManager object which can be used to perform transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProtocolExtensions returns a list strings representing the various features that this specific version of the library supports within its protocol version.
ProtocolVersion returns the protocol version that this library supports.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DurabilityLevelMajority indicates the operation must be replicated to the majority.
DurabilityLevelMajorityAndPersistToActive indicates the operation must be replicated to the majority and persisted to the active server.
DurabilityLevelNone indicates that no durability is needed.
DurabilityLevelPersistToMajority indicates the operation must be persisted to the active server.
DurabilityLevelUnknown indicates to use the default level.
No description provided by the author
No description provided by the author
No description provided by the author
StagedMutationInsert indicates the staged mutation was an insert operation.
StagedMutationRemove indicates the staged mutation was an remove operation.
StagedMutationReplace indicates the staged mutation was an replace operation.
StagedMutationUnknown indicates an error has occured.
TransactionAttemptStateAborted indicates that the transaction was aborted.
TransactionAttemptStateCommitted indicates that the transaction is now logically committed but the unstaging of documents is still underway.
TransactionAttemptStateCommitting indicates that the transaction is now trying to become committed, if we stay in this state, it implies ambiguity.
TransactionAttemptStateCompleted indicates that the transaction has been fully completed and no longer has work to perform.
TransactionAttemptStateNothingWritten indicates that nothing has been written yet.
TransactionAttemptStatePending indicates that the transaction ATR has been written and the transaction is currently pending.
TransactionAttemptStateRolledBack indicates that the transaction was not committed and instead was rolled back in its entirety.
TransactionErrorClassFailAmbiguous indicates an error occurred leaving the transaction in an ambiguous way.
TransactionErrorClassFailCasMismatch indicates an error occurred because of a cas mismatch.
TransactionErrorClassFailDocAlreadyExists indicates an error occurred because a document already exists.
TransactionErrorClassFailDocNotFound indicates an error occurred because of a document not found.
TransactionErrorClassFailExpiry indicates an error occurred because the transaction expired.
TransactionErrorClassFailHard indicates an error occurred because of a hard error.
TransactionErrorClassFailOther indicates an error occurred because it did not fit into any other reason.
TransactionErrorClassFailOutOfSpace indicates an error occurred because the ATR is full.
TransactionErrorClassFailPathAlreadyExists indicates an error occurred because a path already exists.
TransactionErrorClassFailPathNotFound indicates an error occurred because a path was not found.
TransactionErrorClassFailTransient indicates an error occurred because of a transient reason.
TransactionErrorClassFailWriteWriteConflict indicates an error occurred because of a write write conflict.
TransactionErrorReasonSuccess indicates the transaction succeeded and did not fail.
TransactionErrorReasonTransactionCommitAmbiguous indicates the transaction should be failed and the commit was ambiguous.
TransactionErrorReasonTransactionExpired indicates the transaction should be failed because it expired.
TransactionErrorReasonTransactionFailed indicates the transaction should be failed because it failed.
TransactionErrorReasonTransactionFailedPostCommit indicates the transaction should be failed because it failed post commit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrAtrEntryNotFound indicates that an expected ATR entry was missing.
ErrAtrFull indicates that the ATR record was too full to accept a new mutation.
ErrAtrNotFound indicates that an expected ATR document was missing.
ErrAttemptExpired indicates an attempt expired.
ErrDocExists indicates that a document already exists.
ErrDocNotFound indicates that a document was not found.
ErrForwardCompatibilityFailure indicates an operation failed due to involving a document in another transaction which contains features this transaction does not support.
ErrIllegalState is used for when a transaction enters an illegal State.
ErrNoAttempt indicates no attempt was started before an operation was performed.
ErrPreviousOperationFailed indicates a previous operation in the transaction failed.
ErrTransactionAbortedExternally indicates the transaction was aborted externally.

# Structs

No description provided by the author
ATRLocation specifies a specific location where ATR entries should be placed when performing transactions.
No description provided by the author
CreateGetResultOptions exposes options for the CreateGetResult method.
No description provided by the author
ForwardCompatEntry represents a forward compatibility entry.
No description provided by the author
GetOptions provides options for a Get operation.
GetResult represents the result of a Get or GetOptional operation.
InsertOptions provides options for a Insert operation.
No description provided by the author
LostATRLocation specifies a specific location where lost transactions should attempt cleanup.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MutableItemMeta represents all the meta-data for a fetched item.
MutableItemMetaATR represents the ATR for meta.
RemoveOptions provides options for a Remove operation.
ReplaceOptions provides options for a Replace operation.
ResumeTransactionOptions specifies options which can be overridden for the resumed transaction.
No description provided by the author
No description provided by the author
StagedMutation wraps all of the information about a mutation which has been staged as part of the transaction and which should later be unstaged when the transaction has been committed.
Transaction represents a single active transaction, it can be used to stage mutations and finally commit them.
No description provided by the author
No description provided by the author
TransactionAttemptResult represents a singular attempt at executing a transaction.
No description provided by the author
No description provided by the author
TransactionCleanupDocRecord represents an individual document operation requiring cleanup.
TransactionCleanupHooks provides a number of internal hooks used for testing.
No description provided by the author
No description provided by the author
TransactionClientRecordHooks provides a number of internal hooks used for testing.
TransactionHooks provides a number of internal hooks.
No description provided by the author
No description provided by the author
TransactionLambdaResult represents the result of a transaction which was executed.
No description provided by the author
TransactionOptions specifies options which can be overridden on a per transaction basis.
No description provided by the author
TransactionsConfig specifies various tunable options related to transactions.
TransactionsManager is the top level wrapper object for all transactions handling.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateStateOptions are the settings available to UpdateState.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
DurabilityLevel specifies the durability level to use for a mutation.
No description provided by the author
No description provided by the author
StagedMutationType represents the type of a mutation performed in a transaction.
TransactionAttemptState represents the current State of a transaction.
TransactionErrorClass describes the reason that a transaction error occurred.
TransactionErrorReason is the reason why a transaction should be failed.
TransactionsBucketAgentProviderFn is a function used to provide an agent for a particular bucket by name.
No description provided by the author