MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Worker

Interface Worker

twopc/twopc.go:40–44  ·  view source on GitHub ↗

Worker represents a 2PC worker who implements Prepare, Commit, and Rollback.

Source from the content-addressed store, hash-verified

38
39// Worker represents a 2PC worker who implements Prepare, Commit, and Rollback.
40type Worker interface {
41 Prepare(ctx context.Context, wb WriteBatch) error
42 Commit(ctx context.Context, wb WriteBatch) (interface{}, error)
43 Rollback(ctx context.Context, wb WriteBatch) error
44}
45
46// WriteBatch is an empty interface which will be passed to Worker methods.
47type WriteBatch interface{}

Callers 23

deleteTxsFunction · 0.65
TestStmtFunction · 0.65
TestBadTypeFunction · 0.65
TestStorageFunction · 0.65
setupBenchmarkChainFunction · 0.65
setupBenchmarkStorageFunction · 0.65
prepareMethod · 0.65
storeFunction · 0.65
TestTransactionFunction · 0.65
ExecuteInTxFunction · 0.65
CommitMethod · 0.65
ExecMethod · 0.65

Implementers 3

connclient/conn.go
Storagestorage/storage.go
RaftNodetwopc/twopc_test.go

Calls

no outgoing calls

Tested by

no test coverage detected