aboutsummaryrefslogtreecommitdiff
path: root/refstore/batch_store.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-07 19:06:11 +0800
committerGravatar Runxi Yu2026-03-07 19:06:45 +0800
commit3d71db8702f58182f1f7eda3446a2c474443c7f2 (patch)
tree7d89b915f93a54fe2034b87aa57a280aaeabcecd /refstore/batch_store.go
parentrefstore/files: Accept timeout instead of reading from config (diff)
signatureNo signature
refstore: Add non-transactional store and rw store
Diffstat (limited to 'refstore/batch_store.go')
-rw-r--r--refstore/batch_store.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/refstore/batch_store.go b/refstore/batch_store.go
new file mode 100644
index 00000000..8e821eb6
--- /dev/null
+++ b/refstore/batch_store.go
@@ -0,0 +1,7 @@
+package refstore
+
+// BatchStore begins non-atomic reference batches.
+type BatchStore interface {
+ // BeginBatch creates one new immediate-apply batch.
+ BeginBatch() (Batch, error)
+}