Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitFunc ¶
CommitFunc is function called from the mock to trigger transaction processing in TxnTracker.
type MockControllerTxn ¶
type MockControllerTxn struct { Values controller.KeyValuePairs // contains filtered or unexported fields }
MockControllerTxn is a mock implementation of the Transaction interface from Controller.
func NewMockControllerTxn ¶
func NewMockControllerTxn(seqNum uint64, commitFunc CommitFunc) *MockControllerTxn
NewMockControllerTxn is a constructor for mock Controller Txn.
func (*MockControllerTxn) Commit ¶
func (m *MockControllerTxn) Commit(ctx context.Context) (seqNum uint64, err error)
Commit applies the requested transaction changes.
func (*MockControllerTxn) Delete ¶
func (m *MockControllerTxn) Delete(key string)
Delete adds request to the transaction to delete an existing value.
Click to show internal directories.
Click to hide internal directories.