go-ipfs-config: add badger init profile
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Sep 4, 2017 at 12:33 UTC
6110648544dbe354f85e35cb6c7819d0b8aea83e
1 file changed
+7
config/profile.go
+7
@@ -41,4 +41,11 @@ var ConfigProfiles = map[string]func(*Config) error{
41
c.Discovery.MDNS.Enabled = false
42
return nil
43
},
44
+ "badgerds": func(c *Config) error {
45
+ c.Datastore.Spec = map[string]interface{}{
46
+ "type": "badgerds",
47
+ "path": "badgerds",
48
+ }
49
+ return nil
50
+ },
51
}