ipld-eth-server/vendor/github.com/vulcanize/eth-block-extractor/pkg/db/config.go
2019-12-02 13:24:46 -06:00

20 lines
273 B
Go

package db
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,
}
}