MCPcopy
hub / github.com/grafana/dskit / Txn

Method Txn

kv/etcd/mock.go:215–220  ·  view source on GitHub ↗

Txn implements the Clientv3Facade interface

(ctx context.Context)

Source from the content-addressed store, hash-verified

213
214// Txn implements the Clientv3Facade interface
215func (m *mockKV) Txn(ctx context.Context) clientv3.Txn {
216 return &mockTxn{
217 ctx: ctx,
218 kv: m,
219 }
220}
221
222// Compact implements the Clientv3Facade interface
223func (m *mockKV) Compact(context.Context, int64, ...clientv3.CompactOption) (*clientv3.CompactResponse, error) {

Callers 4

doTxnMethod · 0.80
CommitMethod · 0.80
CASMethod · 0.80
TestMockKV_TxnFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestMockKV_TxnFunction · 0.64