(ctx context.Context, wb WriteBatch)
| 39 | // Worker represents a 2PC worker who implements Prepare, Commit, and Rollback. |
| 40 | type 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 | } |
no outgoing calls