ipld-eth-server/pkg/datastore/ethereum/config.go

20 lines
279 B
Go
Raw Normal View History

2018-05-02 16:17:02 +00:00
package ethereum
type DatabaseType int
const (
Level DatabaseType = iota
)
type DatabaseConfig struct {
Type DatabaseType
Path string
}
func CreateDatabaseConfig(dbType DatabaseType, path string) DatabaseConfig {
return DatabaseConfig{
Type: dbType,
Path: path,
}
}