aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-08 23:58:41 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-08 23:58:41 +0200
commit3b1baea2dd9353f42b3a9d93f6bc92ecbe9f4f01 (patch)
treed255b7e6edbcbaba1f98cf0c666a82c0f9750019 /core
parent2293a3dbda0a96f5cbac851bb73e1e675417e4f3 (diff)
downloadgo-git-3b1baea2dd9353f42b3a9d93f6bc92ecbe9f4f01.tar.gz
format: packfile based on ObjectStorage and CRC32 calculation
Diffstat (limited to 'core')
-rw-r--r--core/storage.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/storage.go b/core/storage.go
index 607e5c6..add56d1 100644
--- a/core/storage.go
+++ b/core/storage.go
@@ -54,6 +54,7 @@ type ObjectIter interface {
// A transaction must end with a call to Commit or Rollback.
type TxObjectStorage interface {
Set(Object) (Hash, error)
+ Get(ObjectType, Hash) (Object, error)
Commit() error
Rollback() error
}