Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
26
native/desktop/maplefile/pkg/storage/leveldb/config.go
Normal file
26
native/desktop/maplefile/pkg/storage/leveldb/config.go
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package leveldb
|
||||
|
||||
type LevelDBConfigurationProvider interface {
|
||||
GetDBPath() string
|
||||
GetDBName() string
|
||||
}
|
||||
|
||||
type LevelDBConfigurationProviderImpl struct {
|
||||
dbPath string
|
||||
dbName string
|
||||
}
|
||||
|
||||
func NewLevelDBConfigurationProvider(dbPath string, dbName string) LevelDBConfigurationProvider {
|
||||
return &LevelDBConfigurationProviderImpl{
|
||||
dbPath: dbPath,
|
||||
dbName: dbName,
|
||||
}
|
||||
}
|
||||
|
||||
func (me *LevelDBConfigurationProviderImpl) GetDBPath() string {
|
||||
return me.dbPath
|
||||
}
|
||||
|
||||
func (me *LevelDBConfigurationProviderImpl) GetDBName() string {
|
||||
return me.dbName
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue