@cryptotaxi247 / kubo / commits / 30a5aa9b0

feat(repo): expose the Datastore() in repo.Repo interface

Brian Tiger Chow committed Jan 14, 2015 at 09:26 UTC 30a5aa9b0497ee8cde7d40497292752f421284b3
1 file changed +3
repo/repo.go
+3
@@ -1,6 +1,7 @@
1 package repo
2
3 import (
4 + datastore "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
5 config "github.com/jbenet/go-ipfs/repo/config"
6 util "github.com/jbenet/go-ipfs/util"
7 )
@@ -11,6 +12,8 @@ type Repo interface {
12
13 SetConfigKey(key string, value interface{}) error
14 GetConfigKey(key string) (interface{}, error)
15 +
16 + Datastore() datastore.ThreadSafeDatastore
17 }
18
19 // IsInitialized returns true if the path is home to an initialized IPFS