package
0.0.0-20181017201615-3b9dd4710f09
Repository: https://github.com/m3db/m3cluster.git
Documentation: pkg.go.dev
# Functions
NewCondition returns a new Condition.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOpResponse creates a new OpResponse.
NewOverrideOptions creates a new kv Options.
NewResponse creates a new transaction Response.
NewSetOp returns a SetOp.
NewValueWatchable creates a new ValueWatchable.
# Constants
list of supported CompareType.
list of supported OpTypes.
list of supported TargetTypes.
UninitializedVersion is the version of an uninitialized kv value.
# Variables
ErrAlreadyExists is returned when attempting a SetIfEmpty and the key already has a value.
ErrConditionCheckFailed is returned when condition check failed.
ErrNotFound is returned when attempting a Get but no value is found for the given key.
ErrUnknownCompareType is returned when an unknown CompareType is requested.
ErrUnknownOpType is returned when an unknown OpType is requested.
ErrUnknownTargetType is returned when an unknown TargetType is requested.
ErrVersionMismatch is returned when attempting a CheckAndSet and the key is not at the provided version.
# Structs
Mock of Condition interface.
Mock of Op interface.
Mock of OpResponse interface.
Mock of OverrideOptions interface.
Mock of Response interface.
Mock of Store interface.
Mock of TxnStore interface.
Mock of Value interface.
Mock of ValueWatch interface.
Mock of ValueWatchable interface.
OverrideConfiguration is the config for OverrideOptions.
SetOp is a Op with OpType Set.
# Interfaces
Condition defines the prerequisite for a transaction.
Op is the operation to be performed in a transaction.
OpResponse is the response of a transaction operation.
OverrideOptions provides a set of options to override the default configurations of a KV store.
Response captures the response of the transaction.
Store provides access to the configuration store.
TxnStore supports transactions on top of Store interface.
A Value provides access to a versioned value in the configuration store.
ValueWatch provides updates to a Value.
ValueWatchable can be watched for Value changes.
# Type aliases
CompareType is the type of the comparison in the condition.
OpType is the type of the operation.
TargetType is the type of the comparison target in the condition.