1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-19 15:01:22 +08:00
Files
kubo/repo/config/datastore.go
2015-01-13 03:09:33 -08:00

17 lines
506 B
Go

package config
// DefaultDataStoreDirectory is the directory to store all the local IPFS data.
const DefaultDataStoreDirectory = "datastore"
// Datastore tracks the configuration of the datastore.
type Datastore struct {
Type string
Path string
}
// DataStorePath returns the default data store path given a configuration root
// (set an empty string to have the default configuration root)
func DataStorePath(configroot string) (string, error) {
return Path(configroot, DefaultDataStoreDirectory)
}